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 Details

    • 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 Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object