public class DefaultSatelliteData extends Object implements SatelliteData
| Constructor and Description |
|---|
DefaultSatelliteData() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addCustomData(String key,
T data)
Adds custom data to this SatelliteData.
|
<T> Optional<T> |
getCustomData(String key)
Retrieves custom data stored in this SatelliteData.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMovementCost, isPassable, setMovementCost, setPassablepublic <T> void addCustomData(String key, T data)
SatelliteDataaddCustomData in interface SatelliteDataT - type of the datakey - a key to be used for later retrievaldata - the data itselfpublic <T> Optional<T> getCustomData(String key)
SatelliteDatagetCustomData in interface SatelliteDataT - type of the datakey - the key which can be used to fetch the dataCopyright © 2016. All rights reserved.