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, waitspliteratorparallelStream, removeIf, streampublic ReferenceHashSet(AbstractReferenceMap.ReferenceStrength refType)
public boolean add(Object obj)
add in interface Collectionadd in interface Setpublic boolean addAll(Collection coll)
addAll in interface CollectionaddAll in interface Setpublic void clear()
clear in interface Collectionclear in interface Setpublic boolean contains(Object obj)
contains in interface Collectioncontains in interface Setpublic boolean containsAll(Collection coll)
containsAll in interface CollectioncontainsAll in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic Iterator iterator()
public boolean remove(Object obj)
remove in interface Collectionremove in interface Setpublic boolean removeAll(Collection coll)
removeAll in interface CollectionremoveAll in interface Setpublic boolean retainAll(Collection coll)
retainAll in interface CollectionretainAll in interface Setpublic int size()
size in interface Collectionsize in interface Setpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] arr)
toArray in interface CollectiontoArray in interface Setpublic int hashCode()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.