java.lang.Object
org.ojalgo.structure.Structure1D.BasicMapper<T>
- All Implemented Interfaces:
Structure1D.IndexMapper<T>
- Enclosing interface:
Structure1D
-
Method Summary
Modifier and TypeMethodDescriptionlongFor each key (any instance of that type) there is a corresponding index value – 1 or more key instances will be mapped to each index value.final TtoKey(long index) In most cases it should be safe to assume that the input index value is valid (matching what would be created byStructure1D.IndexMapper.toIndex(Object)).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ojalgo.structure.Structure1D.IndexMapper
next, previous
-
Method Details
-
toIndex
Description copied from interface:Structure1D.IndexMapperFor each key (any instance of that type) there is a corresponding index value – 1 or more key instances will be mapped to each index value.- Specified by:
toIndexin interfaceStructure1D.IndexMapper<T>
-
toKey
Description copied from interface:Structure1D.IndexMapperIn most cases it should be safe to assume that the input index value is valid (matching what would be created byStructure1D.IndexMapper.toIndex(Object)).- Specified by:
toKeyin interfaceStructure1D.IndexMapper<T>
-