|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.ConverterCollections.ConverterCollection
public static class ConverterCollections.ConverterCollection
A Converter Collection views an underlying Collection through a Converter.
| Field Summary | |
|---|---|
protected java.util.Collection |
m_colThe underlying Collection. |
protected Converter |
m_convDownThe Converter from this Collection to the underlying Collection. |
protected Converter |
m_convUpThe Converter from the underlying Collection to this Collection. |
| Constructor Summary | |
|---|---|
ConverterCollections.ConverterCollection(java.util.Collection col, Converter convUp, Converter convDown)Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(java.lang.Object o)Ensures that this Collection contains the specified element. |
boolean |
addAll(java.util.Collection col)Adds all of the elements in the specified Collection to this Collection (optional operation). |
void |
clear()Removes all of the elements from this Collection. |
boolean |
contains(java.lang.Object o)Returns true if this Collection contains the specified element. |
boolean |
containsAll(java.util.Collection col)Returns true if this Collection contains all of the elements in the specified Collection. |
boolean |
equals(java.lang.Object o)Compares the specified object with this collection for equality. |
java.util.Collection |
getCollection()Return the underlying Collection. |
Converter |
getConverterDown()Return the Converter used to pass values down to the underlying Collection. |
Converter |
getConverterUp()Return the Converter used to view the underlying Collection's values through. |
protected java.util.Collection |
instantiateCollection(java.util.Collection col, Converter convUp, Converter convDown)Create a Converter Collection. |
protected java.util.Iterator |
instantiateIterator(java.util.Iterator iter, Converter conv)Create a Converter Iterator. |
void |
invalidate()Drop references to the underlying Collection and the Converters. |
boolean |
isEmpty()Returns true if this Collection contains no elements. |
java.util.Iterator |
iterator()Returns an Iterator over the elements contained in this Collection. |
boolean |
remove(java.lang.Object o)Removes a single instance of the specified element from this Collection, if it is present (optional operation). |
boolean |
removeAll(java.util.Collection col)Removes all this Collection's elements that are also contained in the specified Collection (optional operation). |
boolean |
retainAll(java.util.Collection col)Retains only the elements in this Collection that are contained in the specified Collection (optional operation). |
int |
size()Returns the number of elements in this Collection. |
java.lang.Object[] |
toArray()Returns an array containing all of the elements in this Collection. |
java.lang.Object[] |
toArray(java.lang.Object[] aoDest)Returns an array containing all of the elements in this Collection whose runtime type is that of the specified array. |
java.lang.String |
toString()Return a String description for this collection. |
| Methods inherited from interface java.util.Collection |
|---|
hashCode |
| Field Detail |
|---|
protected java.util.Collection m_col
protected Converter m_convUp
protected Converter m_convDown
| Constructor Detail |
|---|
public ConverterCollections.ConverterCollection(java.util.Collection col,
Converter convUp,
Converter convDown)
col - the underlying CollectionconvUp - the Converter from the underlying CollectionconvDown - the Converter to the underlying Collection| Method Detail |
|---|
public int size()
size in interface java.util.Collectionpublic boolean isEmpty()
isEmpty in interface java.util.Collectionpublic boolean contains(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface java.util.Collectiono - the object to search for in the Collectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] aoDest)
toArray in interface java.util.CollectionaoDest - the array into which the elements of this Collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purposepublic boolean add(java.lang.Object o)
add in interface java.util.Collectiono - element whose presence in this Collection is to be ensuredpublic boolean remove(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)), if the Collection contains one or more such elements. Returns true if the Collection contained the specified element (or equivalently, if the Collection changed as a result of the call).remove in interface java.util.Collectiono - element to be removed from this Collection, if presentpublic boolean containsAll(java.util.Collection col)
containsAll in interface java.util.Collectioncol - Collection to be checked for containment in this CollectionCollection.contains(Object)public boolean addAll(java.util.Collection col)
addAll in interface java.util.Collectioncol - elements to be inserted into this CollectionCollection.add(Object)public boolean removeAll(java.util.Collection col)
removeAll in interface java.util.Collectioncol - elements to be removed from this CollectionCollection.remove(Object), Collection.contains(Object)public boolean retainAll(java.util.Collection col)
retainAll in interface java.util.Collectioncol - elements to be retained in this CollectionCollection.remove(Object), Collection.contains(Object)public void clear()
clear in interface java.util.Collectionpublic boolean equals(java.lang.Object o)
Obeys the general contract of Collection.equals.
equals in interface java.util.Collectiono - Object to be compared for equality with this CollectionObject.equals(Object), Set.equals(Object), List.equals(Object)public java.lang.String toString()
public void invalidate()
protected java.util.Collection instantiateCollection(java.util.Collection col,
Converter convUp,
Converter convDown)
col - the underlying CollectionconvUp - the Converter to view the underlying Collection throughconvDown - the Converter to pass items down to the underlying Collection through
protected java.util.Iterator instantiateIterator(java.util.Iterator iter,
Converter conv)
iter - the underlying Iteratorconv - the Converter to view the underlying Iterator throughpublic java.util.Collection getCollection()
public Converter getConverterUp()
public Converter getConverterDown()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||