Package com.tangosol.util
Class WrapperCollections.AbstractWrapperLongArray<V>
- java.lang.Object
- 
- com.tangosol.util.WrapperCollections.AbstractWrapperLongArray<V>
 
- 
- All Implemented Interfaces:
- LongArray<V>,- Serializable,- Cloneable,- Iterable<V>
 - Direct Known Subclasses:
- CopyOnWriteLongArray
 - Enclosing class:
- WrapperCollections
 
 public abstract static class WrapperCollections.AbstractWrapperLongArray<V> extends Object implements LongArray<V> Abstract wrapper implementation for LongArrays.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface com.tangosol.util.LongArrayLongArray.Iterator<V>
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractWrapperLongArray()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description longadd(V oValue)Add the passed element value to the LongArray and return the index at which the element value was stored.Vceiling(long lIndex)Return the "first" value with an index which is greater than or equal to the specified index.longceilingIndex(long lIndex)Return the "first" index which is greater than or equal to the specified index.voidclear()Remove all nodes from the LongArray.abstract WrapperCollections.AbstractWrapperLongArray<V>clone()Make a clone of the LongArray.booleancontains(V oValue)Determine if the LongArray contains the specified element.protected abstract LongArray<V>delegate()Return the delegate LongArray.booleanexists(long lIndex)Determine if the specified index is in use.Vfloor(long lIndex)Return the "first" value with an index which is less than or equal to the specified index.longfloorIndex(long lIndex)Return the "first" index which is less than or equal to the specified index.Vget(long lIndex)Return the value stored at the specified index.longgetFirstIndex()Determine the first index that exists in the LongArray.longgetLastIndex()Determine the last index that exists in the LongArray.intgetSize()Determine the size of the LongArray.longindexOf(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.longindexOf(V oValue, long lIndex)Return the index in this LongArray of the first occurrence of the specified element such that (index greater or equal to lIndex), or NOT_FOUND if this LongArray does not contain the specified element.booleanisEmpty()Test for empty LongArray.LongArray.Iterator<V>iterator()Obtain a LongArray.Iterator of the contents of the LongArray in order of increasing indices.LongArray.Iterator<V>iterator(long lIndex)Obtain a LongArray.Iterator of the contents of the LongArray in order of increasing indices, starting at a particular index such that the first call to next will set the location of the iterator at the first existent index that is greater than or equal to the specified index, or will throw a NoSuchElementException if there is no such existent index.longlastIndexOf(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.longlastIndexOf(V oValue, long lIndex)Return the index in this LongArray of the last occurrence of the specified element such that (index less then or equal to lIndex), or NOT_FOUND if this LongArray does not contain the specified element.Vremove(long lIndex)Remove the specified index from the LongArray, returning its associated value.voidremove(long lIndexFrom, long lIndexTo)Remove all nodes in the specified range.LongArray.Iterator<V>reverseIterator()Obtain a LongArray.Iterator of the contents of the LongArray in reverse order (decreasing indices).LongArray.Iterator<V>reverseIterator(long lIndex)Obtain a LongArray.Iterator of the contents of the LongArray in reverse order (decreasing indices), starting at a particular index such that the first call to next will set the location of the iterator at the first existent index that is less than or equal to the specified index, or will throw a NoSuchElementException if there is no such existent index.Vset(long lIndex, V oValue)Add the passed item to the LongArray at the specified index.- 
Methods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.IterableforEach, spliterator
 
- 
 
- 
- 
- 
Method Detail- 
clonepublic abstract WrapperCollections.AbstractWrapperLongArray<V> clone() Description copied from interface:LongArrayMake a clone of the LongArray. The element values are not deep-cloned.
 - 
getpublic V get(long lIndex) Description copied from interface:LongArrayReturn the value stored at the specified index.
 - 
floorIndexpublic long floorIndex(long lIndex) Description copied from interface:LongArrayReturn the "first" index which is less than or equal to the specified index.- Specified by:
- floorIndexin interface- LongArray<V>
- Parameters:
- lIndex- the index
- Returns:
- the index or NOT_FOUND
 
 - 
floorpublic V floor(long lIndex) Description copied from interface:LongArrayReturn the "first" value with an index which is less than or equal to the specified index.
 - 
ceilingIndexpublic long ceilingIndex(long lIndex) Description copied from interface:LongArrayReturn the "first" index which is greater than or equal to the specified index.- Specified by:
- ceilingIndexin interface- LongArray<V>
- Parameters:
- lIndex- the index
- Returns:
- the index or NOT_FOUND
 
 - 
ceilingpublic V ceiling(long lIndex) Description copied from interface:LongArrayReturn the "first" value with an index which is greater than or equal to the specified index.
 - 
setpublic V set(long lIndex, V oValue) Description copied from interface:LongArrayAdd the passed item to the LongArray at the specified index.If the index is already used, the passed value will replace the current value stored with the key, and the replaced value will be returned. It is expected that LongArray implementations will "grow" as necessary to support the specified index. 
 - 
addpublic long add(V oValue) Description copied from interface:LongArrayAdd the passed element value to the LongArray and return the index at which the element value was stored.
 - 
existspublic boolean exists(long lIndex) Description copied from interface:LongArrayDetermine if the specified index is in use.
 - 
removepublic V remove(long lIndex) Description copied from interface:LongArrayRemove the specified index from the LongArray, returning its associated value.
 - 
removepublic void remove(long lIndexFrom, long lIndexTo)Description copied from interface:LongArrayRemove all nodes in the specified range.
 - 
containspublic boolean contains(V oValue) Description copied from interface:LongArrayDetermine if the LongArray contains the specified element.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)). 
 - 
clearpublic void clear() Description copied from interface:LongArrayRemove all nodes from the LongArray.
 - 
isEmptypublic boolean isEmpty() Description copied from interface:LongArrayTest for empty LongArray.
 - 
getSizepublic int getSize() Description copied from interface:LongArrayDetermine the size of the LongArray.
 - 
iteratorpublic LongArray.Iterator<V> iterator() Description copied from interface:LongArrayObtain a LongArray.Iterator of the contents of the LongArray in order of increasing indices.
 - 
iteratorpublic LongArray.Iterator<V> iterator(long lIndex) Description copied from interface:LongArrayObtain a LongArray.Iterator of the contents of the LongArray in order of increasing indices, starting at a particular index such that the first call to next will set the location of the iterator at the first existent index that is greater than or equal to the specified index, or will throw a NoSuchElementException if there is no such existent index.
 - 
reverseIteratorpublic LongArray.Iterator<V> reverseIterator() Description copied from interface:LongArrayObtain a LongArray.Iterator of the contents of the LongArray in reverse order (decreasing indices).- Specified by:
- reverseIteratorin interface- LongArray<V>
- Returns:
- an instance of LongArray.Iterator
 
 - 
reverseIteratorpublic LongArray.Iterator<V> reverseIterator(long lIndex) Description copied from interface:LongArrayObtain a LongArray.Iterator of the contents of the LongArray in reverse order (decreasing indices), starting at a particular index such that the first call to next will set the location of the iterator at the first existent index that is less than or equal to the specified index, or will throw a NoSuchElementException if there is no such existent index.- Specified by:
- reverseIteratorin interface- LongArray<V>
- Parameters:
- lIndex- the LongArray index to iterate from
- Returns:
- an instance of LongArray.Iterator
 
 - 
getFirstIndexpublic long getFirstIndex() Description copied from interface:LongArrayDetermine the first index that exists in the LongArray.- Specified by:
- getFirstIndexin interface- LongArray<V>
- Returns:
- the lowest long value that exists in this LongArray, or NOT_FOUND if the LongArray is empty
 
 - 
getLastIndexpublic long getLastIndex() Description copied from interface:LongArrayDetermine the last index that exists in the LongArray.- Specified by:
- getLastIndexin interface- LongArray<V>
- Returns:
- the highest long value that exists in this LongArray, or NOT_FOUND if the LongArray is empty
 
 - 
indexOfpublic long indexOf(V oValue) Description copied from interface:LongArrayReturn 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.
 - 
indexOfpublic long indexOf(V oValue, long lIndex) Description copied from interface:LongArrayReturn the index in this LongArray of the first occurrence of the specified element such that (index greater or equal to lIndex), or NOT_FOUND if this LongArray does not contain the specified element.
 - 
lastIndexOfpublic long lastIndexOf(V oValue) Description copied from interface:LongArrayReturn 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.- Specified by:
- lastIndexOfin interface- LongArray<V>
- Parameters:
- oValue- the object to find the index for
- Returns:
- the index of the last occurrence of the specified object in the LongArray
 
 - 
lastIndexOfpublic long lastIndexOf(V oValue, long lIndex) Description copied from interface:LongArrayReturn the index in this LongArray of the last occurrence of the specified element such that (index less then or equal to lIndex), or NOT_FOUND if this LongArray does not contain the specified element.- Specified by:
- lastIndexOfin interface- LongArray<V>
- Parameters:
- oValue- the object to find the index for
- lIndex- the index to compare to
- Returns:
- the index of the specified object in this LongArray that is less or equal to the specified index
 
 
- 
 
-