public class GrowableIndex extends AIndex
| Constructor and Description |
|---|
GrowableIndex() |
GrowableIndex(int initialCapacity) |
GrowableIndex(int[] values) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(int i) |
void |
checkedAppend(int i)
Appends to a growable index, ensuring that the added index is higher than the last index
|
void |
copyTo(int[] array,
int offset) |
static GrowableIndex |
create(AIndex source)
Creates a GrowableVector with the specified index values included
|
GrowableIndex |
exactClone() |
int |
get(int i)
Gets the index value at position i
|
int |
include(int i)
Includes a value in a distinct, sorted growable index.
|
int |
indexPosition(int x)
Looks up an index value in the index, returning its position or -1 if not found
Index must be both sorted and distinct.
|
int |
last()
Gets the last index value in this index.
|
int |
length()
Returns the length of this index list
|
int |
seekPosition(int i)
Returns the position at which an index value exists or should be inserted at in an index
Index must be both sorted and distinct.
|
void |
set(int i,
int value) |
static GrowableIndex |
wrap(int[] indexes)
Creates a GrowableVector with the specified index values included
|
clone, compareTo, compose, contains, contains, containsSorted, equals, equals, hashCode, isDistinct, isDistinctSorted, isFullyMutable, isPermutation, isSorted, iterator, maxIndex, minIndex, reverse, sort, swap, toArray, toIndex, toList, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic GrowableIndex()
public GrowableIndex(int initialCapacity)
public GrowableIndex(int[] values)
public static GrowableIndex create(AIndex source)
source - public static GrowableIndex wrap(int[] indexes)
source - public int get(int i)
AIndexpublic int length()
AIndexpublic void append(int i)
public void checkedAppend(int i)
i - public int indexPosition(int x)
AIndexindexPosition in class AIndexpublic GrowableIndex exactClone()
exactClone in class AIndexpublic int last()
AIndexpublic int include(int i)
i - public int seekPosition(int i)
AIndexseekPosition in class AIndexCopyright © 2016. All rights reserved.