|
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
java.util.AbstractCollection
java.util.AbstractSet
com.tangosol.net.cache.OverflowMap.InternalKeySet
protected class OverflowMap.InternalKeySet
A read-only set of keys backed by this map.
| Nested Class Summary | |
|---|---|
protected class |
OverflowMap.InternalKeySet.InternalKeySetIteratorAn Iterator implementation over the keys in the OverflowMap that that is based on a concurrent Iterator over the internal status map. |
| Constructor Summary | |
|---|---|
protected |
OverflowMap.InternalKeySet() |
| Method Summary | |
|---|---|
boolean |
contains(Object o)Returns true if this collection contains the specified element. |
boolean |
isEmpty()Returns true if this collection contains no elements. |
Iterator |
iterator()Returns an iterator over the elements contained in this collection. |
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; the runtime type of the returned array is that of the specified array. |
| Methods inherited from class java.util.AbstractSet |
|---|
equals, hashCode, removeAll |
| Methods inherited from class java.util.AbstractCollection |
|---|
add, addAll, clear, containsAll, remove, retainAll, toString |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, containsAll, remove, retainAll |
| Constructor Detail |
|---|
protected OverflowMap.InternalKeySet()
| Method Detail |
|---|
public boolean contains(Object o)
This implementation iterates over the elements in the collection, checking each element in turn for equality with the specified element.
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectiono - object to be checked for containment in this collection.public boolean isEmpty()
This implementation returns size() == 0.
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollectionpublic Object[] toArray()
This implementation allocates the array to be returned, and iterates over the elements in the collection, storing each object reference in the next consecutive element of the array, starting with element 0.
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionpublic Object[] toArray(Object[] ao)
If the collection fits in the specified array with room to spare (i.e., the array has more elements than the collection), the element in the array immediately following the end of the collection is set to null. This is useful in determining the length of the collection only if the caller knows that the collection does not contain any null elements.)
If this collection makes any guarantees as to what order its elements are returned by its iterator, this method must return the elements in the same order.
This implementation checks if the array is large enough to contain the collection; if not, it allocates a new array of the correct size and type (using reflection). Then, it iterates over the collection, storing each object reference in the next consecutive element of the array, starting with element 0. If the array is larger than the collection, a null is stored in the first location after the end of the collection.
toArray in interface CollectiontoArray in interface SettoArray in class AbstractCollectionao - the array into which the elements of the collection are to be stored, if it is big enough; otherwise, a new array of the same runtime type is allocated for this purpose.
|
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 | |||||||