TwoDimensional that makes it trivial to calculate a position within a
two dimensional object.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final IntSupplier | |
| private final IntUnaryOperator |
| Access | Constructor and Description |
|---|---|
| public | TwoLevelNavigator(IntSupplier
a supplier that returns the number of "inner lists" within an "outer list" (see
elemCount, IntUnaryOperator TwoDimensional for clarification). For example,
List::sizea function that, given the index of an "inner list," returns either the size of that "inner
list" of the length of that inner object. elemLength)Creates a navigator that can be used to find a |
| Modifier and Type | Method and Description |
|---|---|
| public TwoDimensional. | offsetToPosition(int offset, TwoDimensional.
Implements org. Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length)
where the |
| public TwoDimensional. | position(int major, int minor)
Implements org. Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length)
where the |
| elemCount | back to summary |
|---|---|
| private final IntSupplier elemCount | |
| elemLength | back to summary |
|---|---|
| private final IntUnaryOperator elemLength | |
| TwoLevelNavigator | back to summary |
|---|---|
| public TwoLevelNavigator(IntSupplier elemCount, IntUnaryOperator elemLength) Creates a navigator that can be used to find a
| |
| offsetToPosition | back to summary |
|---|---|
| public TwoDimensional. Implements org. Doc from org. Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length)
where the
| |
| position | back to summary |
|---|---|
| public TwoDimensional. Implements org. Doc from org. Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length)
where the
| |