| Modifier and Type | Class and Description |
|---|---|
static class |
Location.Builder |
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_INDEX |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Coordinate |
getCoordinate() |
String |
getId() |
int |
getIndex() |
String |
getName() |
Object |
getUserData() |
int |
hashCode() |
static Location |
newInstance(double x,
double y)
Factory method (and shortcut) for creating a location object just with x and y coordinates.
|
static Location |
newInstance(int index)
Factory method (and shortcut) for creating location object just with location index
|
static Location |
newInstance(String id)
Factory method (and shortcut) for creating location object just with id
|
String |
toString() |
public static final int NO_INDEX
public static Location newInstance(double x, double y)
x - coordinatey - coordinatepublic static Location newInstance(String id)
id - location idpublic static Location newInstance(int index)
index - public Object getUserData()
public Coordinate getCoordinate()
public String getName()
Copyright © 2013–2019. All rights reserved.