|
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 LongArray
lIndex
- a long index value
public long add(Object oValue)
add
in interface LongArray
oValue
- the object to add to the LongArray
public boolean exists(long lIndex)
exists
in interface LongArray
lIndex
- a long index value
public Object remove(long lIndex)
remove
in interface LongArray
lIndex
- 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 LongArray
o
- element whose presence in this list is to be tested
public void clear()
clear
in interface LongArray
public boolean isEmpty()
isEmpty
in interface LongArray
public int getSize()
getSize
in interface LongArray
public long getFirstIndex()
getFirstIndex
in interface LongArray
public long getLastIndex()
getLastIndex
in interface LongArray
public String toString()
toString
in interface LongArray
public boolean equals(Object o)
equals
in interface LongArray
o
- 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 |