|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| 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.AbstractLongArray
public abstract class AbstractLongArray
An implementation of portions of the LongArray interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.tangosol.util.LongArray |
|---|
LongArray.Iterator |
| Field Summary |
|---|
| Fields inherited from interface com.tangosol.util.LongArray |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
AbstractLongArray() |
|
| Method Summary | |
|---|---|
long |
add(java.lang.Object oValue)Add the passed element value to the LongArray and return the index at which the element value was stored. |
void |
clear()Remove all nodes from the LongArray. |
java.lang.Object |
clone()Make a clone of the LongArray. |
boolean |
contains(java.lang.Object o)Determine if the LongArray contains the specified element. |
boolean |
equals(java.lang.Object o)Test for LongArray equality. |
boolean |
exists(long lIndex)Determine if the specified index is in use. |
java.lang.Object |
get(long lIndex)Return the value stored at the specified index. |
long |
getFirstIndex()Determine the first index that exists in the LongArray. |
long |
getLastIndex()Determine the last index that exists in the LongArray. |
int |
getSize()Determine the size of the LongArray. |
int |
hashCode() |
long |
indexOf(java.lang.Object oValue)Return the index in this LongArray of the first occurrence of the specified element, or NOT_FOUND if this LongArray does not contain the specified element. |
long |
indexOf(java.lang.Object oValue, long lIndex)Return the index in this LongArray of the first occurrence of the specified element such that (index >= lIndex), or NOT_FOUND if this LongArray does not contain the specified element. |
boolean |
isEmpty()Test for empty LongArray. |
long |
lastIndexOf(java.lang.Object oValue)Return the index in this LongArray of the last occurrence of the specified element, or NOT_FOUND if this LongArray does not contain the specified element. |
long |
lastIndexOf(java.lang.Object oValue, long lIndex)Return the index in this LongArray of the last occurrence of the specified element such that (index <= lIndex), or NOT_FOUND if this LongArray does not contain the specified element. |
java.lang.Object |
remove(long lIndex)Remove the specified key from the SparseArray, returning its associated value. |
java.lang.String |
toString()Provide a string representation of the LongArray. |
| Methods inherited from interface com.tangosol.util.LongArray |
|---|
iterator, iterator, reverseIterator, reverseIterator, set |
| Constructor Detail |
|---|
public AbstractLongArray()
| Method Detail |
|---|
public java.lang.Object get(long lIndex)
get in interface LongArraylIndex - a long index valuepublic long add(java.lang.Object oValue)
add in interface LongArrayoValue - the object to add to the LongArraypublic boolean exists(long lIndex)
exists in interface LongArraylIndex - a long index valuepublic java.lang.Object remove(long lIndex)
remove in interface LongArraylIndex - the index of the key to look for in the SparseArraypublic boolean contains(java.lang.Object o)
More formally, returns true if and only if this LongArray contains at least one element e such that (o==null ? e==null : o.equals(e)).
contains in interface LongArrayo - element whose presence in this list is to be testedpublic void clear()
clear in interface LongArraypublic boolean isEmpty()
isEmpty in interface LongArraypublic int getSize()
getSize in interface LongArraypublic long getFirstIndex()
getFirstIndex in interface LongArraypublic long getLastIndex()
getLastIndex in interface LongArraypublic long indexOf(java.lang.Object oValue)
indexOf in interface LongArray
public long indexOf(java.lang.Object oValue,
long lIndex)
indexOf in interface LongArraypublic long lastIndexOf(java.lang.Object oValue)
lastIndexOf in interface LongArray
public long lastIndexOf(java.lang.Object oValue,
long lIndex)
lastIndexOf in interface LongArraypublic java.lang.String toString()
toString in interface LongArraypublic boolean equals(java.lang.Object o)
equals in interface LongArrayo - an Object to compare to this LongArray for equalitypublic int hashCode()
public java.lang.Object clone()
clone in interface LongArray
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||