public class TranslateIndex
No translation to index.
public int translate(int index)
Translates index to base index. This class has no translation.
index - indexpublic int reverseTranslateIndex(int index)
Translates base index to this index. This class has no translation.
index - indexpublic int numIndices()
Number of indices represented by this translation. Number of base indices will be the same or larger.
public boolean hasTranslations()
Indicates whether this index translation has translations. If every index is translated to itself, there are no translations. If this represents a subset of the total indices, there are translations even if all indices in the subset translate to itself.
public kotlin.Array[] getTranslations()
Returns all the translated indices.