|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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.RestrictedCollections.RestrictedEntrySet
public static class RestrictedCollections.RestrictedEntrySet
A restricted Collection that requires its contents to be of a specified class.
| Nested Class Summary | |
|---|---|
protected class |
RestrictedCollections.RestrictedEntrySet.RestrictedEntryA Map Entry that restricts the key and value types. |
protected class |
RestrictedCollections.RestrictedEntrySet.RestrictedIteratorA Map Entry Iterator that restricts the key and value types. |
| Field Summary | |
|---|---|
protected java.lang.Class |
m_clzValThe class of value stored in the Map. |
protected java.util.Set |
m_setThe underlying Entry Set. |
| Constructor Summary | |
|---|---|
RestrictedCollections.RestrictedEntrySet(java.util.Set set, java.lang.Class clzKey, java.lang.Class clzVal)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). |
protected void |
checkValue(java.lang.Object o)Check the passed object to verify that it passes the "value" restriction of this Map. |
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. |
int |
hashCode()Returns the hash code value for this collection. |
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[] ao)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. |
protected java.util.Map.Entry |
wrapEntry(java.util.Map.Entry entry)Wrap an Entry from the Entry Set to make a Restricted Entry. |
protected java.util.Iterator |
wrapIterator(java.util.Iterator iter)Wrap an Iterator from the Entry Set to make a Restricted Iterator. |
| Field Detail |
|---|
protected java.util.Set m_set
protected java.lang.Class m_clzVal
| Constructor Detail |
|---|
public RestrictedCollections.RestrictedEntrySet(java.util.Set set,
java.lang.Class clzKey,
java.lang.Class clzVal)
set - the underlying Entry SetclzKey - the class of keys that may be stored in the MapclzVal - the class of values that may be stored in the Map| Method Detail |
|---|
public int size()
size in interface java.util.Collectionsize in interface java.util.Setpublic boolean isEmpty()
isEmpty in interface java.util.CollectionisEmpty in interface java.util.Setpublic boolean contains(java.lang.Object o)
e such that (o==null ? e==null : o.equals(e)).contains in interface java.util.Collectioncontains in interface java.util.Seto - the object to search for in the Collectionpublic java.util.Iterator iterator()
iterator in interface java.lang.Iterableiterator in interface java.util.Collectioniterator in interface java.util.Setpublic java.lang.Object[] toArray()
toArray in interface java.util.CollectiontoArray in interface java.util.Setpublic java.lang.Object[] toArray(java.lang.Object[] ao)
toArray in interface java.util.CollectiontoArray in interface java.util.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(java.lang.Object o)
add in interface java.util.Collectionadd in interface java.util.Seto - 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.Collectionremove in interface java.util.Seto - element to be removed from this Collection, if presentpublic boolean containsAll(java.util.Collection col)
containsAll in interface java.util.CollectioncontainsAll in interface java.util.Setcol - Collection to be checked for containment in this Collectionpublic boolean addAll(java.util.Collection col)
addAll in interface java.util.CollectionaddAll in interface java.util.Setcol - elements to be inserted into this Collectionpublic boolean removeAll(java.util.Collection col)
removeAll in interface java.util.CollectionremoveAll in interface java.util.Setcol - elements to be removed from this Collectionpublic boolean retainAll(java.util.Collection col)
retainAll in interface java.util.CollectionretainAll in interface java.util.Setcol - elements to be retained in this Collectionpublic void clear()
clear in interface java.util.Collectionclear in interface java.util.Setpublic boolean equals(java.lang.Object o)
Obeys the general contract of Collection.equals.
equals in interface java.util.Collectionequals in interface java.util.Seto - Object to be compared for equality with this Collectionpublic int hashCode()
hashCode in interface java.util.CollectionhashCode in interface java.util.Setpublic java.lang.String toString()
protected void checkValue(java.lang.Object o)
o - the Object to checkjava.lang.ClassCastException - if the class of the passed Object prevents it from being used as a value in this Mapprotected java.util.Map.Entry wrapEntry(java.util.Map.Entry entry)
entry - a Map Entry to wrapprotected java.util.Iterator wrapIterator(java.util.Iterator iter)
iter - a Iterator to wrap
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||