Class Structure1D.BasicMapper<T>
java.lang.Object
org.ojalgo.structure.Structure1D.BasicMapper<T>
- All Implemented Interfaces:
Structure1D.IndexMapper<T>
- Enclosing interface:
Structure1D
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final longindexForNewKey(T newKey) longFor 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Structure1D.IndexMapper
next, previous
-
Field Details
-
myKeys
-
-
Constructor Details
-
BasicMapper
BasicMapper()
-
-
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>
-
indexForNewKey
-