|
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
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.InternalKeySetIterator An 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(java.lang.Object o) Returns true if this collection contains the specified element. |
boolean |
isEmpty() Returns true if this collection contains no elements. |
java.util.Iterator |
iterator() Returns an iterator over the elements contained in this collection. |
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; 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(java.lang.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 java.util.Collection
contains
in interface java.util.Set
contains
in class java.util.AbstractCollection
o
- object to be checked for containment in this collection.public boolean isEmpty()
This implementation returns size() == 0.
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.Set
isEmpty
in class java.util.AbstractCollection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.Set
iterator
in class java.util.AbstractCollection
public int size()
size
in interface java.util.Collection
size
in interface java.util.Set
size
in class java.util.AbstractCollection
public java.lang.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 java.util.Collection
toArray
in interface java.util.Set
toArray
in class java.util.AbstractCollection
public java.lang.Object[] toArray(java.lang.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 java.util.Collection
toArray
in interface java.util.Set
toArray
in class java.util.AbstractCollection
ao
- 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.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |