public class PartitionId extends io.atomix.utils.AbstractIdentifier<Integer> implements Comparable<PartitionId>
PartitionMetadata identifier.| Constructor and Description |
|---|
PartitionId(String group,
int id)
Creates a partition identifier from an integer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(PartitionId that) |
boolean |
equals(Object object) |
static PartitionId |
from(String group,
int id)
Creates a partition identifier from an integer.
|
String |
group()
Returns the partition group name.
|
int |
hashCode() |
String |
toString() |
public PartitionId(String group, int id)
id - input integerpublic static PartitionId from(String group, int id)
group - the group identifierid - input integerpublic int compareTo(PartitionId that)
compareTo in interface Comparable<PartitionId>public String group()
public int hashCode()
hashCode in class io.atomix.utils.AbstractIdentifier<Integer>public boolean equals(Object object)
equals in class io.atomix.utils.AbstractIdentifier<Integer>Copyright © 2013–2018. All rights reserved.