Documentation of 'mikera.indexz.impl.ComputedIndex' Java class
ComputedIndex
mikera.indexz.impl

Class 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 Detail

      • ComputedIndex

        public ComputedIndex(int length)
    • Method Detail

      • length

        public final int length()
        Description copied from class: AIndex
        Returns the length of this index list
        Specified by:
        length in class AIndex
        Returns:
      • indexPosition

        public int indexPosition(int x)
        Description copied from class: AIndex
        Looks up an index value in the index, returning its position or -1 if not found Index must be both sorted and distinct.
        Specified by:
        indexPosition in class AIndex
        Returns:
      • set

        public void set(int i,
                        int value)
        Specified by:
        set in class AIndex

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.