public static interface Structure1D.IndexMapper<T>
Modifier and Type | Method and Description |
---|---|
default T |
next(T key)
This default implementation assumes that the index is incremented by 1 when incrementing the key to
the next value.
|
default T |
previous(T key)
This default implementation assumes that the index is decremented by 1 when decrementing the key to
the previous value.
|
long |
toIndex(T key) |
T |
toKey(long index) |
default T next(T key)
key
- The value to incrementdefault T previous(T key)
key
- The value to decrementlong toIndex(T key)
T toKey(long index)
Copyright © 2019 Optimatika. All rights reserved.