|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.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 |
| Constructor Summary | |
|---|---|
AbstractLongArray()
|
|
| Method Summary | |
|---|---|
long |
add(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. |
Object |
clone()
Make a clone of the LongArray. |
boolean |
contains(Object o)
Determine if the LongArray contains the specified element. |
boolean |
equals(Object o)
Test for LongArray equality. |
boolean |
exists(long lIndex)
Determine if the specified index is in use. |
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. |
boolean |
isEmpty()
Test for empty LongArray. |
Object |
remove(long lIndex)
Remove the specified key from the SparseArray, returning its associated value. |
String |
toString()
Provide a string representation of the LongArray. |
| Methods inherited from interface com.tangosol.util.LongArray |
|---|
iterator, iterator, set |
| Constructor Detail |
|---|
public AbstractLongArray()
| Method Detail |
|---|
public Object get(long lIndex)
get in interface LongArraylIndex - a long index value
public long add(Object oValue)
add in interface LongArrayoValue - the object to add to the LongArray
public boolean exists(long lIndex)
exists in interface LongArraylIndex - a long index value
public Object remove(long lIndex)
remove in interface LongArraylIndex - the index of the key to look for in the SparseArray
public boolean contains(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 tested
public 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 String toString()
toString in interface LongArraypublic boolean equals(Object o)
equals in interface LongArrayo - an Object to compare to this LongArray for equality
public Object clone()
clone in interface LongArray
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||