|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet
org.norther.tammi.acorn.util.ConcurrentReadSet
public class ConcurrentReadSet
An implementation of the Set interface backed by a
ConcurrentReadMap instance.
| Constructor Summary | |
|---|---|
ConcurrentReadSet()
Constructs a new set. |
|
ConcurrentReadSet(Collection c)
Constructs a new set containing the elements in the specified collection. |
|
ConcurrentReadSet(int capacity)
Constructs a new set with the specified capacity. |
|
ConcurrentReadSet(int capacity,
float loadFactor)
Constructs a new set with the specified capacity and load factor. |
|
| Method Summary | |
|---|---|
boolean |
add(Object value)
Adds the specified element to this set if not already present. |
void |
clear()
Removes all of the elements from this set. |
Object |
clone()
Returns a shallow copy of this set. |
boolean |
contains(Object o)
Checks whether this set contains the specified element. |
boolean |
isEmpty()
Checks whether this set contains any elements. |
Iterator |
iterator()
Returns an iterator over the elements in this set. |
boolean |
remove(Object value)
Removes the specified element from this set if present. |
int |
size()
Returns the number of elements in this set. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
addAll, containsAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public ConcurrentReadSet()
public ConcurrentReadSet(Collection c)
c - an initial collection.public ConcurrentReadSet(int capacity)
capacity - the initial capacity.
public ConcurrentReadSet(int capacity,
float loadFactor)
capacity - the initial capacity.loadFactor - the load factor.| Method Detail |
|---|
public Object clone()
clone in class Objectpublic boolean add(Object value)
add in interface Collectionadd in interface Setadd in class AbstractCollectionvalue - the element to be added.
public boolean remove(Object value)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionvalue - the element to be removed.
public void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectiono - the element to check.
public boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||