Package io.vertx.ext.consul
Class CoordinateList
- java.lang.Object
-
- io.vertx.ext.consul.CoordinateList
-
public class CoordinateList extends Object
Holds result of network coordinates query- Author:
- Ruslan Sennov
-
-
Constructor Summary
Constructors Constructor Description CoordinateList()Default constructorCoordinateList(JsonObject json)Constructor from JSONCoordinateList(CoordinateList other)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)longgetIndex()Get Consul indexList<Coordinate>getList()Get list of coordinatesinthashCode()CoordinateListsetIndex(long index)Set Consul index, a unique identifier representing the current state of the requested coordinatesCoordinateListsetList(List<Coordinate> list)Set list of coordinatesJsonObjecttoJson()Convert to JSON
-
-
-
Constructor Detail
-
CoordinateList
public CoordinateList()
Default constructor
-
CoordinateList
public CoordinateList(CoordinateList other)
Copy constructor- Parameters:
other- the one to copy
-
CoordinateList
public CoordinateList(JsonObject json)
Constructor from JSON- Parameters:
json- the JSON
-
-
Method Detail
-
toJson
public JsonObject toJson()
Convert to JSON- Returns:
- the JSON
-
getIndex
public long getIndex()
Get Consul index- Returns:
- the consul index
-
getList
public List<Coordinate> getList()
Get list of coordinates- Returns:
- the list of coordinates
-
setIndex
public CoordinateList setIndex(long index)
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
public CoordinateList setList(List<Coordinate> list)
Set list of coordinates- Parameters:
list- the list of coordinates- Returns:
- reference to this, for fluency
-
-