public class ReferenceHashSet extends Object implements Set, Serializable
Constructor and Description |
---|
ReferenceHashSet(AbstractReferenceMap.ReferenceStrength 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 ReferenceHashSet(AbstractReferenceMap.ReferenceStrength 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–2022 Apache Software Foundation. All rights reserved.