Class Coordinate

java.lang.Object
io.vertx.ext.consul.Coordinate

public class Coordinate extends Object
Holds network coordinates of node
Author:
Ruslan Sennov
See Also:
  • Constructor Details

    • Coordinate

      public Coordinate()
      Default constructor
    • Coordinate

      public Coordinate(Coordinate coordinate)
      Copy constructor
      Parameters:
      coordinate - the one to copy
    • Coordinate

      public Coordinate(JsonObject coordinate)
      Constructor from JSON
      Parameters:
      coordinate - the JSON
  • Method Details

    • toJson

      public JsonObject toJson()
      Convert to JSON
      Returns:
      the JSON
    • getNode

      public String getNode()
      Get name of node
      Returns:
      name of node
    • getAdj

      public float getAdj()
      Get adjustment
      Returns:
      adjustment
    • getErr

      public float getErr()
      Get error
      Returns:
      error
    • getHeight

      public float getHeight()
      Get height
      Returns:
      height
    • getVec

      public List<Float> getVec()
      Get vector
      Returns:
      vector
    • setNode

      public Coordinate setNode(String node)
      Set name of node
      Parameters:
      node - name of node
      Returns:
      reference to this, for fluency
    • setAdj

      public Coordinate setAdj(float adj)
      Set adjustment
      Parameters:
      adj - adjustment
      Returns:
      reference to this, for fluency
    • setErr

      public Coordinate setErr(float err)
      Set error
      Parameters:
      err - error
      Returns:
      reference to this, for fluency
    • setHeight

      public Coordinate setHeight(float height)
      Set height
      Parameters:
      height - height
      Returns:
      reference to this, for fluency
    • setVec

      public Coordinate setVec(List<Float> vec)
      Set vector
      Parameters:
      vec - vector
      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