Class CoordinateList
java.lang.Object
io.vertx.ext.consul.CoordinateList
Holds result of network coordinates query
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCoordinateList(JsonObject json) Constructor from JSONCoordinateList(CoordinateList other) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetIndex()Get Consul indexgetList()Get list of coordinatesinthashCode()setIndex(long index) Set Consul index, a unique identifier representing the current state of the requested coordinatessetList(List<Coordinate> list) Set list of coordinatestoJson()Convert to JSON
-
Constructor Details
-
CoordinateList
public CoordinateList()Default constructor -
CoordinateList
-
CoordinateList
-
-
Method Details
-
toJson
-
getIndex
public long getIndex()Get Consul index- Returns:
- the consul index
-
getList
-
setIndex
Set Consul index, a unique identifier representing the current state of the requested coordinates- Parameters:
index- the consul index- Returns:
- reference to this, for fluency
-
setList
Set list of coordinates- Parameters:
list- the list of coordinates- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-