| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Location |
build() |
static Location.Builder |
newInstance() |
Location.Builder |
setCoordinate(Coordinate coordinate)
Sets coordinate of location
|
Location.Builder |
setId(String id)
Sets location id
|
Location.Builder |
setIndex(int index)
Sets location index
|
Location.Builder |
setName(String name)
Adds name, e.g.
|
Location.Builder |
setUserData(Object userData)
Sets user specific domain data associated with the object.
|
public static Location.Builder newInstance()
public Location.Builder setUserData(Object userData)
The user data is a black box for the framework, it only stores it, but never interacts with it in any way.
userData - any object holding the domain specific user data
associated with the object.public Location.Builder setIndex(int index)
index - location indexpublic Location.Builder setCoordinate(Coordinate coordinate)
coordinate - of locationpublic Location.Builder setId(String id)
id - id of locationpublic Location.Builder setName(String name)
name - name of locationpublic Location build()
Copyright © 2013–2020. All rights reserved.