public class PartitionId extends 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)
Compares two device key identifiers for equality.
|
static PartitionId |
from(String group,
int id)
Creates a partition identifier from an integer.
|
String |
group()
Returns the partition group name.
|
int |
hashCode()
Returns the hashcode of the identifier.
|
String |
toString()
Returns a string representation of a DeviceKeyId.
|
idpublic PartitionId(String group, int id)
group - the group identifierid - 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()
AbstractIdentifierhashCode in class AbstractIdentifier<Integer>public boolean equals(Object object)
AbstractIdentifierequals in class AbstractIdentifier<Integer>object - to compare againstpublic String toString()
AbstractIdentifiertoString in class AbstractIdentifier<Integer>Copyright © 2013–2018. All rights reserved.