io.vertx.ext.consul

## 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 Summary

    Constructors
    Constructor and Description
    `CoordinateList()` Default constructor
    `CoordinateList(CoordinateList other)` Copy constructor
    `CoordinateList(JsonObject json)` Constructor from JSON

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `long` | `getIndex()` Get Consul index
    `List<Coordinate>` | `getList()` Get list of coordinates
    `int` | `hashCode()`
    `CoordinateList` | `setIndex(long index)` Set Consul index, a unique identifier representing the current state of the requested coordinates
    `CoordinateList` | `setList(List<Coordinate> list)` Set list of coordinates
    `JsonObject` | `toJson()` Convert to JSON

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### 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 Detail

    - #### 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`

Copyright © 2017. All rights reserved.