public class IndexModel extends Object
Constructor and Description |
---|
IndexModel()
Default constructor
|
IndexModel(JsonObject json)
Json constructor
|
IndexModel(JsonObject key,
IndexOptions options) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JsonObject |
getKey()
Get the index key
|
IndexOptions |
getOptions()
Get the index options
|
int |
hashCode() |
IndexModel |
setKey(JsonObject key)
Sets the index key
|
IndexModel |
setOptions(IndexOptions options)
Sets the index options
|
JsonObject |
toJson()
Convert to JSON
|
String |
toString() |
public IndexModel()
public IndexModel(JsonObject json)
json
- - the json objectpublic IndexModel(JsonObject key, IndexOptions options)
public JsonObject getKey()
public IndexModel setKey(JsonObject key)
key
- - the index keyspublic IndexOptions getOptions()
public IndexModel setOptions(IndexOptions options)
options
- - the index optionspublic JsonObject toJson()
Copyright © 2023 Eclipse. All rights reserved.