public final class IndexAddress extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<byte[]> |
getIdInGroup()
Returns the index id in a group if it belongs to one, otherwise returns an empty optional.
|
String |
getName()
Returns the name of the index or index group.
|
int |
hashCode() |
String |
toString() |
static IndexAddress |
valueOf(String name)
Creates an address of an individual index.
|
static IndexAddress |
valueOf(String groupName,
byte[] idInGroup)
Creates an address of an index belonging to an index group.
|
public static IndexAddress valueOf(String name)
name - the name of the indexpublic static IndexAddress valueOf(String groupName, byte[] idInGroup)
groupName - the name of the index groupidInGroup - the id of the index in grouppublic String getName()
public Optional<byte[]> getIdInGroup()
Copyright © 2019 Exonum. All rights reserved.