Package io.vertx.ext.consul
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:
- Network coordinates
-
-
Constructor Summary
Constructors Constructor Description Coordinate()Default constructorCoordinate(JsonObject coordinate)Constructor from JSONCoordinate(Coordinate coordinate)Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)floatgetAdj()Get adjustmentfloatgetErr()Get errorfloatgetHeight()Get heightStringgetNode()Get name of nodeList<Float>getVec()Get vectorinthashCode()CoordinatesetAdj(float adj)Set adjustmentCoordinatesetErr(float err)Set errorCoordinatesetHeight(float height)Set heightCoordinatesetNode(String node)Set name of nodeCoordinatesetVec(List<Float> vec)Set vectorJsonObjecttoJson()Convert to JSON
-
-
-
Constructor Detail
-
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 Detail
-
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
-
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
-
-