public static class StructureAnyD.ReferenceMapper extends Object implements Structure1D.IndexMapper<Object[]>
Modifier | Constructor and Description |
---|---|
protected |
ReferenceMapper(StructureAnyD structure,
Structure1D.IndexMapper<Object>[] mappers) |
Modifier and Type | Method and Description |
---|---|
<T> long |
toIndex(int dim,
T key) |
long |
toIndex(Object[] keys) |
<T> T |
toKey(int dim,
long index) |
Object[] |
toKey(long index) |
<T extends Comparable<? super T>> |
toKey(long index,
int dim) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next, previous
protected ReferenceMapper(StructureAnyD structure, Structure1D.IndexMapper<Object>[] mappers)
public <T> long toIndex(int dim, T key)
public long toIndex(Object[] keys)
toIndex
in interface Structure1D.IndexMapper<Object[]>
public <T> T toKey(int dim, long index)
public Object[] toKey(long index)
toKey
in interface Structure1D.IndexMapper<Object[]>
public <T extends Comparable<? super T>> T toKey(long index, int dim)
Copyright © 2018 Optimatika. All rights reserved.