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 boolean
equals(Object o)
float
getAdj()
Get adjustmentfloat
getErr()
Get errorfloat
getHeight()
Get heightString
getNode()
Get name of nodeList<Float>
getVec()
Get vectorint
hashCode()
Coordinate
setAdj(float adj)
Set adjustmentCoordinate
setErr(float err)
Set errorCoordinate
setHeight(float height)
Set heightCoordinate
setNode(String node)
Set name of nodeCoordinate
setVec(List<Float> vec)
Set vectorJsonObject
toJson()
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
-
-