public class MapObject extends KeyIndexedObject
| Modifier and Type | Field and Description |
|---|---|
private LatLon |
coordinate |
private long |
firstSeenTime |
private static ImageIcon |
ICON_UNKNOWN_TYPE |
private static Function<String,URL> |
iconUrlGen |
private long |
lastSeenTime |
private String |
objPackage |
private long |
updatedTime |
private String |
value |
| Constructor and Description |
|---|
MapObject(LatLon coordinate,
String key,
String objPackage,
String value,
long firstSeenTime,
long lastSeenTime,
long updatedTime) |
| Modifier and Type | Method and Description |
|---|---|
LatLon |
getCoordinate() |
long |
getFirstSeenTime() |
static ImageIcon |
getIcon(String objectTypeID) |
long |
getLastSeenTime() |
String |
getPackage() |
long |
getUpdatedTime() |
String |
getValue() |
equals, getKey, hashCodeprivate static final ImageIcon ICON_UNKNOWN_TYPE
private static Function<String,URL> iconUrlGen
private final LatLon coordinate
private final String objPackage
private final long firstSeenTime
private final long lastSeenTime
private final long updatedTime
public LatLon getCoordinate()
public static ImageIcon getIcon(String objectTypeID)
objectTypeID - the String representing the type of map object. This ID can be retrieved via
getValue() for any given MapObject.public String getPackage()
public long getFirstSeenTime()
public long getLastSeenTime()
public long getUpdatedTime()