|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.util.concurrent.ConcurrentReferenceHashSet
public class ConcurrentReferenceHashSet
A concurrent set whose values may be stored as weak or soft references.
| Field Summary | |
|---|---|
static int |
HARD
Hard reference marker. |
static int |
SOFT
Soft reference marker. |
static int |
WEAK
Weak reference marker. |
| Constructor Summary | |
|---|---|
ConcurrentReferenceHashSet(int refType)
Construct a set with the given reference type. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HARD
public static final int SOFT
public static final int WEAK
| Constructor Detail |
|---|
public ConcurrentReferenceHashSet(int refType)
| Method Detail |
|---|
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()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setpublic 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()
hashCode in interface CollectionhashCode in interface SethashCode in class Objectpublic boolean equals(Object obj)
equals in interface Collectionequals in interface Setequals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||