public abstract class AbstractLongArray<V> extends Object implements LongArray<V>
LongArray.Iterator<V>| Constructor and Description |
|---|
AbstractLongArray() |
| Modifier and Type | Method and Description |
|---|---|
long |
add(V 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.
|
AbstractLongArray<V> |
clone()
Make a clone of the LongArray.
|
boolean |
contains(V value)
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.
|
V |
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(V 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(V oValue,
long lIndex)
Return the index in this LongArray of the first occurrence of
the specified element such that
(index is greater or equal to lIndex), or
NOT_FOUND if this LongArray does not contain the specified
element. |
boolean |
isEmpty()
Test for empty LongArray.
|
long |
lastIndexOf(V 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(V oValue,
long lIndex)
Return the index in this LongArray of the last occurrence of the
specified element such that
(index less than or equal to lIndex), or
NOT_FOUND if this LongArray does not contain the specified
element. |
V |
remove(long lIndex)
Remove the specified key from the LongArray, returning its associated
value.
|
void |
remove(long lIndexFrom,
long lIndexTo)
Remove all nodes in the specified range.
|
String |
toString()
Provide a string representation of the LongArray.
|
finalize, getClass, notify, notifyAll, wait, wait, waitceiling, ceilingIndex, floor, floorIndex, iterator, iterator, keys, reverseIterator, reverseIterator, setforEach, spliteratorpublic V get(long lIndex)
public long add(V oValue)
public boolean exists(long lIndex)
public V remove(long lIndex)
public void remove(long lIndexFrom,
long lIndexTo)
public boolean contains(V value)
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)).
public void clear()
public boolean isEmpty()
public int getSize()
public long getFirstIndex()
getFirstIndex in interface LongArray<V>public long getLastIndex()
getLastIndex in interface LongArray<V>public long indexOf(V oValue)
public long indexOf(V oValue, long lIndex)
(index is greater or equal to lIndex), or
NOT_FOUND if this LongArray does not contain the specified
element.public long lastIndexOf(V oValue)
lastIndexOf in interface LongArray<V>oValue - the object to find the index forpublic long lastIndexOf(V oValue, long lIndex)
(index less than or equal to lIndex), or
NOT_FOUND if this LongArray does not contain the specified
element.lastIndexOf in interface LongArray<V>oValue - the object to find the index forlIndex - the index to compare topublic String toString()
public boolean equals(Object o)