|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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.ConverterEntrySet
public static class ConverterCollections.ConverterEntrySet
A Converter Entry Set views an underlying Entry Set through a set of key and value Converters.
| Nested Class Summary | |
|---|---|
protected class |
ConverterCollections.ConverterEntrySet.ConverterEntryA Map Entry that lazily converts the key and value. |
protected class |
ConverterCollections.ConverterEntrySet.ConverterIteratorA Map Entry Iterator that converts the key and value types. |
| Field Summary | |
|---|---|
protected Converter |
m_convKeyDownThe Converter used to pass keys down to the Entry Set. |
protected Converter |
m_convKeyUpThe Converter used to view keys stored in the Entry Set. |
protected Converter |
m_convValDownThe Converter used to pass values down to the Entry Set. |
protected Converter |
m_convValUpThe Converter used to view values stored in the Entry Set. |
protected Collection |
m_setThe underlying Entry Set (or Collection of Map Entry objects). |
| Constructor Summary | |
|---|---|
ConverterCollections.ConverterEntrySet(Collection set, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)Ensures that this Collection contains the specified element. |
boolean |
addAll(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(Object o)Returns true if this Collection contains the specified element. |
boolean |
containsAll(Collection col)Returns true if this Collection contains all of the elements in the specified Collection. |
boolean |
equals(Object o)Compares the specified object with this collection for equality. |
Converter |
getConverterKeyDown()Return the Converter used to pass keys down to the underlying Entry Set. |
Converter |
getConverterKeyUp()Return the Converter used to view the underlying Entry Set's keys through. |
Converter |
getConverterValueDown()Return the Converter used to pass values down to the underlying Entry Set. |
Converter |
getConverterValueUp()Return the Converter used to view the underlying Entry Set's values through. |
Collection |
getEntrySet()Return the underlying Entry Set. |
protected Set |
instantiateEntrySet(Collection col, Converter convKeyUp, Converter convKeyDown, Converter convValUp, Converter convValDown)Create a Converter Entry Set. |
boolean |
isEmpty()Returns true if this Collection contains no elements. |
Iterator |
iterator()Returns an Iterator over the elements contained in this Collection. |
boolean |
remove(Object o)Removes a single instance of the specified element from this Collection, if it is present (optional operation). |
boolean |
removeAll(Collection col)Removes all this Collection's elements that are also contained in the specified Collection (optional operation). |
boolean |
retainAll(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. |
Object[] |
toArray()Returns an array containing all of the elements in this Collection. |
Object[] |
toArray(Object[] ao)Returns an array containing all of the elements in this Collection whose runtime type is that of the specified array. |
String |
toString()Return a String description for this collection. |
protected Map.Entry |
wrapEntry(Map.Entry entry)Wrap an Entry from the Entry Set to make a Converter Entry. |
protected Iterator |
wrapIterator(Iterator iter)Wrap an Iterator from the Entry Set to make a Converter Iterator. |
| Methods inherited from interface java.util.Set |
|---|
hashCode |
| Field Detail |
|---|
protected Collection m_set
protected Converter m_convKeyUp
protected Converter m_convKeyDown
protected Converter m_convValUp
protected Converter m_convValDown
| Constructor Detail |
|---|
public ConverterCollections.ConverterEntrySet(Collection set,
Converter convKeyUp,
Converter convKeyDown,
Converter convValUp,
Converter convValDown)
set - the underlying Entry Set (or Collection of Map Entry objects)convKeyUp - the Converter to view the underlying Entry Set's keys throughconvKeyDown - the Converter to use to pass keys down to the underlying Entry SetconvValUp - the Converter to view the underlying Entry Set's values throughconvValDown - the Converter to use to pass values down to the underlying Entry Set| Method Detail |
|---|
public int size()
size in interface Collectionsize in interface Setpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic boolean contains(Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface Collectioncontains in interface Seto - the object to search for in the Collectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic Object[] toArray(Object[] ao)
toArray in interface CollectiontoArray in interface Setao - 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(Object o)
add in interface Collectionadd in interface Seto - element whose presence in this Collection is to be ensuredpublic boolean remove(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 Collectionremove in interface Seto - element to be removed from this Collection, if presentpublic boolean containsAll(Collection col)
containsAll in interface CollectioncontainsAll in interface Setcol - Collection to be checked for containment in this CollectionCollection.contains(Object)public boolean addAll(Collection col)
addAll in interface CollectionaddAll in interface Setcol - elements to be inserted into this CollectionCollection.add(Object)public boolean removeAll(Collection col)
removeAll in interface CollectionremoveAll in interface Setcol - elements to be removed from this CollectionCollection.remove(Object), Collection.contains(Object)public boolean retainAll(Collection col)
retainAll in interface CollectionretainAll in interface Setcol - elements to be retained in this CollectionCollection.remove(Object), Collection.contains(Object)public void clear()
clear in interface Collectionclear in interface Setpublic boolean equals(Object o)
Obeys the general contract of Collection.equals.
equals in interface Collectionequals in interface Seto - Object to be compared for equality with this CollectionObject.equals(Object), Set.equals(Object), List.equals(Object)public String toString()
protected Set instantiateEntrySet(Collection col,
Converter convKeyUp,
Converter convKeyDown,
Converter convValUp,
Converter convValDown)
col - the underlying Collection of Map Entry objectsconvKeyUp - the Converter to view the underlying Map's Entry Set's keys throughconvKeyDown - the Converter to use to pass keys down to the underlying Map's Entry SetconvValUp - the Converter to view the underlying Map's Entry Set's values throughconvValDown - the Converter to use to pass values down to the underlying Map's Entry Setprotected Map.Entry wrapEntry(Map.Entry entry)
entry - a Map Entry to wrapprotected Iterator wrapIterator(Iterator iter)
iter - a Iterator to wrappublic Collection getEntrySet()
public Converter getConverterKeyUp()
public Converter getConverterKeyDown()
public Converter getConverterValueUp()
public Converter getConverterValueDown()
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||