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) |
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 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–2018 Apache Software Foundation. All rights reserved.