Class Coordinate
java.lang.Object
io.vertx.ext.consul.Coordinate
Holds network coordinates of node
- Author:
- Ruslan Sennov
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCoordinate(JsonObject coordinate) Constructor from JSONCoordinate(Coordinate coordinate) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatgetAdj()Get adjustmentfloatgetErr()Get errorfloatGet heightgetNode()Get name of nodegetVec()Get vectorinthashCode()setAdj(float adj) Set adjustmentsetErr(float err) Set errorsetHeight(float height) Set heightSet name of nodeSet vectortoJson()Convert to JSON
-
Constructor Details
-
Coordinate
public Coordinate()Default constructor -
Coordinate
-
Coordinate
-
-
Method Details
-
toJson
-
getNode
-
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
-
setNode
Set name of node- Parameters:
node- name of node- Returns:
- reference to this, for fluency
-
setAdj
Set adjustment- Parameters:
adj- adjustment- Returns:
- reference to this, for fluency
-
setErr
Set error- Parameters:
err- error- Returns:
- reference to this, for fluency
-
setHeight
Set height- Parameters:
height- height- Returns:
- reference to this, for fluency
-
setVec
Set vector- Parameters:
vec- vector- Returns:
- reference to this, for fluency
-
equals
-
hashCode
-