public class KeyValueList extends Object
Constructor and Description |
---|
KeyValueList()
Default constructor
|
KeyValueList(JsonObject json)
Constructor from JSON
|
KeyValueList(KeyValueList other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
long |
getIndex()
Get Consul index
|
List<KeyValue> |
getList()
Get list of key/value pairs
|
int |
hashCode() |
boolean |
isPresent()
Return
true if there is a key/value pairs present, otherwise false . |
KeyValueList |
setIndex(long index)
Set Consul index
|
KeyValueList |
setList(List<KeyValue> list)
Set list of key/value pairs
|
JsonObject |
toJson()
Convert to JSON
|
public KeyValueList()
public KeyValueList(KeyValueList other)
other
- the one to copypublic KeyValueList(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public boolean isPresent()
true
if there is a key/value pairs present, otherwise false
.true
if there is a key/value pairs present, otherwise false
public long getIndex()
public KeyValueList setIndex(long index)
index
- the consul indexpublic List<KeyValue> getList()
public KeyValueList setList(List<KeyValue> list)
list
- list of key/value pairsCopyright © 2021 Eclipse. All rights reserved.