mikera.indexz.impl
Class ComputedIndex
- java.lang.Object
-
- mikera.indexz.AIndex
-
- mikera.indexz.impl.ComputedIndex
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<AIndex>, java.lang.Iterable<java.lang.Integer>
- Direct Known Subclasses:
- SequentialIndex
public abstract class ComputedIndex extends AIndex
Abstract base class for computed indexes. Intended for extension via an (anonymous) inner class.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ComputedIndex(int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description AIndexexactClone()intindexPosition(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.booleanisFullyMutable()intlength()Returns the length of this index listvoidset(int i, int value)-
Methods inherited from class mikera.indexz.AIndex
clone, compareTo, compose, contains, contains, containsSorted, copyTo, equals, equals, get, hashCode, isDistinct, isDistinctSorted, isPermutation, isSorted, iterator, last, maxIndex, minIndex, reverse, seekPosition, sort, swap, toArray, toIndex, toList, toString
-
-
-
-
Method Detail
-
isFullyMutable
public boolean isFullyMutable()
- Overrides:
isFullyMutablein classAIndex
-
length
public final int length()
Description copied from class:AIndexReturns the length of this index list
-
indexPosition
public int indexPosition(int x)
Description copied from class:AIndexLooks up an index value in the index, returning its position or -1 if not found Index must be both sorted and distinct.- Specified by:
indexPositionin classAIndex- Returns:
-
exactClone
public AIndex exactClone()
- Specified by:
exactClonein classAIndex
-
-
DMelt 3.0 © DataMelt by jWork.ORG