public static class Structure2D.RowColumnMapper<R,C> extends Object implements Structure1D.IndexMapper<Structure2D.RowColumnKey<R,C>>
| Modifier | Constructor and Description |
|---|---|
protected |
RowColumnMapper(Structure2D structure,
Structure1D.IndexMapper<R> rowMapper,
Structure1D.IndexMapper<C> columnMapper) |
| Modifier and Type | Method and Description |
|---|---|
C |
toColumnKey(long index) |
long |
toIndex(R rowKey,
C colKey) |
long |
toIndex(Structure2D.RowColumnKey<R,C> key) |
Structure2D.RowColumnKey<R,C> |
toKey(long index) |
R |
toRowKey(long index) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnext, previousprotected RowColumnMapper(Structure2D structure, Structure1D.IndexMapper<R> rowMapper, Structure1D.IndexMapper<C> columnMapper)
public C toColumnKey(long index)
public long toIndex(Structure2D.RowColumnKey<R,C> key)
toIndex in interface Structure1D.IndexMapper<Structure2D.RowColumnKey<R,C>>public Structure2D.RowColumnKey<R,C> toKey(long index)
toKey in interface Structure1D.IndexMapper<Structure2D.RowColumnKey<R,C>>public R toRowKey(long index)
Copyright © 2018 Optimatika. All rights reserved.