Package io.vertx.ext.consul

## Class ServiceEntryList

- java.lang.Object
- - io.vertx.ext.consul.ServiceEntryList

-     public class ServiceEntryList
      extends Object

  Holds list of services, nodes and related checks
  Author:
    Ruslan Sennov

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ServiceEntryList()` | Default constructor
    `ServiceEntryList​(JsonObject json)` | Constructor from JSON
    `ServiceEntryList​(ServiceEntryList other)` | Copy constructor

  - ### Method Summary

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

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

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

- - ### Constructor Detail

    - #### ServiceEntryList

          public ServiceEntryList()

      Default constructor

    - #### ServiceEntryList

          public ServiceEntryList​(JsonObject json)

      Constructor from JSON
      Parameters:
        `json` - the JSON

    - #### ServiceEntryList

          public ServiceEntryList​(ServiceEntryList other)

      Copy constructor
      Parameters:
        `other` - the one to copy

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

      Convert to JSON
      Returns:
        the JSON

    - #### getIndex

          public long getIndex()

      Get Consul index
      Returns:
        the consul index

    - #### setIndex

          public ServiceEntryList setIndex​(long index)

      Set Consul index, a unique identifier representing the current state of the requested list of services
      Parameters:
        `index` - the consul index
      Returns:
        reference to this, for fluency

    - #### getList

          public List<ServiceEntry> getList()

      Get list of services
      Returns:
        list of services

    - #### setList

          public ServiceEntryList setList​(List<ServiceEntry> list)

      Set list of services
      Parameters:
        `list` - list of services
      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`