Package org.ojalgo.structure
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 long
indexForNewKey
(T newKey) long
For 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 T
toKey
(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, wait
Methods inherited from interface org.ojalgo.structure.Structure1D.IndexMapper
next, previous
-
Field Details
-
myKeys
-
-
Constructor Details
-
BasicMapper
BasicMapper()
-
-
Method Details
-
toIndex
Description copied from interface:Structure1D.IndexMapper
For 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:
toIndex
in interfaceStructure1D.IndexMapper<T>
-
toKey
Description copied from interface:Structure1D.IndexMapper
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)
).- Specified by:
toKey
in interfaceStructure1D.IndexMapper<T>
-
indexForNewKey
-