| Package | Description |
|---|---|
| org.codetome.hexameter.core.api | |
| org.codetome.hexameter.core.backport | |
| org.codetome.hexameter.core.internal.impl |
| Modifier and Type | Method and Description |
|---|---|
Optional<Hexagon> |
HexagonalGrid.getByAxialCoordinate(AxialCoordinate coordinate)
Returns a
Hexagon by its axial coordinate. |
Optional<Hexagon> |
HexagonalGrid.getByPixelCoordinate(double coordinateX,
double coordinateY)
Returns a
Hexagon by a pixel coordinate. |
<T> Optional<T> |
SatelliteData.getCustomData(String key)
Retrieves custom data stored in this SatelliteData.
|
<T> Optional<T> |
DefaultSatelliteData.getCustomData(String key) |
<T extends SatelliteData> |
Hexagon.getSatelliteData()
Returns this
Hexagon's satellite data. |
| 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> |
HexagonalGridImpl.getByAxialCoordinate(AxialCoordinate coordinate) |
Optional<Hexagon> |
HexagonalGridImpl.getByPixelCoordinate(double coordinateX,
double coordinateY) |
<T extends SatelliteData> |
HexagonImpl.getSatelliteData() |
Copyright © 2016. All rights reserved.