Class Structure1D.BasicMapper<T>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<T> myKeys  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicMapper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) long indexForNewKey​(T newKey)  
      long toIndex​(T key)
      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.
      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 by Structure1D.IndexMapper.toIndex(Object)).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • myKeys

        private final java.util.List<T> myKeys
    • Constructor Detail

      • BasicMapper

        BasicMapper()