public abstract class AIndex extends Object implements Serializable, Cloneable, Comparable<AIndex>, Iterable<Integer>
| Constructor and Description |
|---|
AIndex() |
| Modifier and Type | Method and Description |
|---|---|
AIndex |
clone() |
int |
compareTo(AIndex a) |
Index |
compose(AIndex a)
Composes this index with a second index, returning a new index.
|
boolean |
contains(Index inds) |
boolean |
contains(int index)
Returns true if the index contains a specific value.
|
boolean |
containsSorted(int index)
Returns true if the index contains a specific value.
|
void |
copyTo(int[] array,
int offset) |
boolean |
equals(AIndex o) |
boolean |
equals(Object o) |
abstract AIndex |
exactClone() |
abstract int |
get(int i)
Gets the index value at position i
|
int |
hashCode() |
abstract 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.
|
boolean |
isDistinct()
Returns true if this Index contains only distinct integer indices
|
boolean |
isDistinctSorted()
Returns true if this index is distinct and sorted (in strictly increasing order)
|
boolean |
isFullyMutable() |
boolean |
isPermutation()
Returns true if this index represents a permutation of positions 0..length-1
|
boolean |
isSorted()
Returns true if this index is sorted (in increasing order)
|
IndexIterator |
iterator()
Gets an iterator over all elements of this index
|
abstract int |
last()
Gets the last index value in this index.
|
abstract int |
length()
Returns the length of this index list
|
int |
maxIndex() |
int |
minIndex() |
void |
reverse() |
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.
|
abstract void |
set(int i,
int value) |
void |
sort()
Sorts the index in place.
|
void |
swap(int i,
int j) |
int[] |
toArray() |
Index |
toIndex() |
List<Integer> |
toList() |
String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic abstract int get(int i)
i - public abstract int length()
public abstract void set(int i,
int value)
public boolean isFullyMutable()
public void copyTo(int[] array,
int offset)
public int[] toArray()
public Index toIndex()
public void swap(int i,
int j)
public void reverse()
public int minIndex()
public int maxIndex()
public boolean isSorted()
public boolean isDistinctSorted()
public void sort()
public boolean isDistinct()
public boolean isPermutation()
public boolean contains(int index)
index - public boolean containsSorted(int index)
index - public boolean contains(Index inds)
public boolean equals(AIndex o)
public int compareTo(AIndex a)
compareTo in interface Comparable<AIndex>public IndexIterator iterator()
public Index compose(AIndex a)
a - public abstract int indexPosition(int x)
x - public int seekPosition(int i)
i - public abstract AIndex exactClone()
public abstract int last()
Copyright © 2016. All rights reserved.