public class EventList extends Object
Constructor and Description |
---|
EventList()
Default constructor
|
EventList(EventList other)
Copy constructor
|
EventList(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getIndex()
Get Consul index
|
List<Event> |
getList()
Get list of events
|
int |
hashCode() |
EventList |
setIndex(long index)
Set Consul index, a unique identifier representing the current state of the requested events
|
EventList |
setList(List<Event> list)
Set list of events
|
JsonObject |
toJson()
Convert to JSON
|
public EventList()
public EventList(EventList other)
other
- the one to copypublic EventList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public long getIndex()
public EventList setIndex(long index)
index
- the consul indexpublic EventList setList(List<Event> list)
list
- the list of eventsCopyright © 2024 Eclipse. All rights reserved.