public class ReferenceHashSet extends Object implements Set, Serializable
Modifier and Type | Field and Description |
---|---|
static int |
HARD
Hard reference marker.
|
static int |
SOFT
Soft reference marker.
|
static int |
WEAK
Weak reference marker.
|
Constructor and Description |
---|
ReferenceHashSet(int refType)
Construct a set with the given reference type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object obj) |
boolean |
addAll(Collection coll) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
containsAll(Collection coll) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator |
iterator() |
boolean |
remove(Object obj) |
boolean |
removeAll(Collection coll) |
boolean |
retainAll(Collection coll) |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] arr) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public static final int HARD
public static final int SOFT
public static final int WEAK
public ReferenceHashSet(int refType)
public boolean add(Object obj)
add
in interface Collection
add
in interface Set
public boolean addAll(Collection coll)
addAll
in interface Collection
addAll
in interface Set
public void clear()
clear
in interface Collection
clear
in interface Set
public boolean contains(Object obj)
contains
in interface Collection
contains
in interface Set
public boolean containsAll(Collection coll)
containsAll
in interface Collection
containsAll
in interface Set
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface Set
public Iterator iterator()
public boolean remove(Object obj)
remove
in interface Collection
remove
in interface Set
public boolean removeAll(Collection coll)
removeAll
in interface Collection
removeAll
in interface Set
public boolean retainAll(Collection coll)
retainAll
in interface Collection
retainAll
in interface Set
public int size()
size
in interface Collection
size
in interface Set
public Object[] toArray()
toArray
in interface Collection
toArray
in interface Set
public Object[] toArray(Object[] arr)
toArray
in interface Collection
toArray
in interface Set
public int hashCode()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.