| Modifier and Type | Method and Description |
|---|---|
Optional<Hexagon<T>> |
HexagonalGrid.getByCubeCoordinate(CubeCoordinate coordinate)
Returns a
Hexagon by its cube coordinate. |
Optional<Hexagon<T>> |
HexagonalGrid.getByPixelCoordinate(double coordinateX,
double coordinateY)
Returns a
Hexagon by a pixel coordinate. |
Optional<Hexagon<T>> |
HexagonalGrid.getNeighborByIndex(Hexagon<T> hexagon,
int index)
Returns a neighbor of a Hexagon by its neighbor index.
|
Optional<T> |
Hexagon.getSatelliteData()
Returns this
Hexagon's satellite data. |
Optional<Hexagon<T>> |
HexagonalGridCalculator.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection)
Returns the Hexagon on the grid which is at the point resulted by rotating the
targetHex's
coordinates around the originalHex by rotationDirection degrees. |
| Modifier and Type | Method and Description |
|---|---|
Optional<T> |
HexagonDataStorage.getSatelliteDataBy(CubeCoordinate cubeCoordinate)
Gets the
SatelliteData stored on a CubeCoordinate if present. |
| Modifier and Type | Method and Description |
|---|---|
Optional<DefaultSatelliteData> |
DefaultHexagonDataStorage.getSatelliteDataBy(CubeCoordinate cubeCoordinate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Optional<T> |
Optional.empty()
Returns an empty
Optional instance. |
Optional<T> |
Optional.filter(java.util.function.Predicate<? super T> predicate)
If a value is present, and the value matches the given predicate,
return an
Optional describing the value, otherwise return an
empty Optional. |
<U> Optional<U> |
Optional.flatMap(java.util.function.Function<? super T,Optional<U>> mapper)
If a value is present, apply the provided
Optional-bearing
mapping function to it, return that result, otherwise return an empty
Optional. |
<U> Optional<U> |
Optional.map(java.util.function.Function<? super T,? extends U> mapper)
If a value is present, apply the provided mapping function to it,
and if the result is non-null, return an
Optional describing the
result. |
static <T> Optional<T> |
Optional.of(T value)
Returns an
Optional with the specified present non-null value. |
static <T> Optional<T> |
Optional.ofNullable(T value)
Returns an
Optional describing the specified value, if non-null,
otherwise returns an empty Optional. |
| Modifier and Type | Method and Description |
|---|---|
<U> Optional<U> |
Optional.flatMap(java.util.function.Function<? super T,Optional<U>> mapper)
If a value is present, apply the provided
Optional-bearing
mapping function to it, return that result, otherwise return an empty
Optional. |
| Modifier and Type | Method and Description |
|---|---|
Optional<Hexagon<T>> |
HexagonalGridImpl.getByCubeCoordinate(CubeCoordinate coordinate) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getByPixelCoordinate(double coordinateX,
double coordinateY) |
Optional<Hexagon<T>> |
HexagonalGridImpl.getNeighborByIndex(Hexagon<T> hexagon,
int index) |
Optional<T> |
HexagonImpl.getSatelliteData() |
Optional<Hexagon<T>> |
HexagonalGridCalculatorImpl.rotateHexagon(Hexagon<T> originalHex,
Hexagon<T> targetHex,
RotationDirection rotationDirection) |
Copyright © 2016. All rights reserved.