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) |
void |
copyTo(int[] array,
int offset) |
boolean |
equals(AIndex o) |
boolean |
equals(Object o) |
abstract int |
get(int i)
Gets the index value at position i
|
int |
hashCode() |
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 |
length()
Returns the length of this index list
|
int |
maxIndex() |
int |
minIndex() |
void |
reverse() |
abstract void |
set(int i,
int value) |
void |
sort()
Sorts the index in place.
|
void |
swap(int i,
int j) |
int[] |
toArray() |
List<Integer> |
toList() |
String |
toString() |
public 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 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)
public boolean contains(Index inds)
public boolean equals(AIndex o)
public int compareTo(AIndex a)
compareTo in interface Comparable<AIndex>public IndexIterator iterator()
Copyright © 2013. All Rights Reserved.