|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Collections.SynchronizedCollection<E>
static class Collections.SynchronizedCollection<E>
| Field Summary | |
|---|---|
(package private) Collection<E> |
c
|
(package private) Object |
mutex
|
| Constructor Summary | |
|---|---|
Collections.SynchronizedCollection(Collection<E> collection)
|
|
Collections.SynchronizedCollection(Collection<E> collection,
Object mutex)
|
|
| Method Summary | ||
|---|---|---|
boolean |
add(E object)
Attempts to add object to the contents of this
Collection. |
|
boolean |
addAll(Collection<? extends E> collection)
Attempts to add all of the objects contained in collection
to the contents of this collection. |
|
void |
clear()
Removes all elements from this Collection, leaving it empty. |
|
boolean |
contains(Object object)
Searches this Collection for the specified object. |
|
boolean |
containsAll(Collection<?> collection)
Searches this Collection for all objects in the specified Collection. |
|
boolean |
isEmpty()
Returns if this Collection has no elements, a size of zero. |
|
Iterator<E> |
iterator()
Returns an instance of Iterator that may be used to access the
objects contained by this collection. |
|
boolean |
remove(Object object)
Removes the first occurrence of the specified object from this Collection. |
|
boolean |
removeAll(Collection<?> collection)
Removes all occurrences in this Collection of each object in the specified Collection. |
|
boolean |
retainAll(Collection<?> collection)
Removes all objects from this Collection that are not also found in the contents of collection. |
|
int |
size()
Returns a count of how many objects are contained by this collection. |
|
Object[] |
toArray()
Returns a new array containing all elements contained in this Collection. |
|
|
toArray(T[] array)
Returns an array containing all elements contained in this Collection. |
|
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Field Detail |
|---|
final Collection<E> c
final Object mutex
| Constructor Detail |
|---|
Collections.SynchronizedCollection(Collection<E> collection)
Collections.SynchronizedCollection(Collection<E> collection,
Object mutex)
| Method Detail |
|---|
public boolean add(E object)
Collectionobject to the contents of this
Collection.
add in interface Collection<E>object - the object to add
true if this Collection is
modified, false otherwisepublic boolean addAll(Collection<? extends E> collection)
Collectioncollection
to the contents of this collection.
addAll in interface Collection<E>collection - the Collection of objects
public void clear()
Collection
clear in interface Collection<E>Collection.isEmpty(),
Collection.size()public boolean contains(Object object)
Collection
contains in interface Collection<E>object - the object to search for
public boolean containsAll(Collection<?> collection)
Collection
containsAll in interface Collection<E>collection - the Collection of objects
public boolean isEmpty()
Collection
isEmpty in interface Collection<E>Collection.size()public Iterator<E> iterator()
CollectionIterator that may be used to access the
objects contained by this collection.
iterator in interface Iterable<E>iterator in interface Collection<E>public boolean remove(Object object)
Collection
remove in interface Collection<E>object - the object to remove
public boolean removeAll(Collection<?> collection)
Collection
removeAll in interface Collection<E>collection - the Collection of objects to remove
public boolean retainAll(Collection<?> collection)
Collectioncollection.
retainAll in interface Collection<E>collection - the Collection of objects to retain
public int size()
Collection
size in interface Collection<E>public Object[] toArray()
Collection
toArray in interface Collection<E>public String toString()
Object
toString in class Objectpublic <T> T[] toArray(T[] array)
Collection
toArray in interface Collection<E>array - the array
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||