Package io.atomix.primitive.partition
Class PartitionId
- All Implemented Interfaces:
Identifier<Integer>,Comparable<PartitionId>
PartitionMetadata identifier.-
Field Summary
Fields inherited from class io.atomix.utils.AbstractIdentifier
identifier -
Constructor Summary
ConstructorsConstructorDescriptionPartitionId(String group, int id) Creates a partition identifier from an integer. -
Method Summary
Methods inherited from class io.atomix.utils.AbstractIdentifier
id
-
Constructor Details
-
PartitionId
Creates a partition identifier from an integer.- Parameters:
group- the group identifierid- input integer
-
-
Method Details
-
from
Creates a partition identifier from an integer.- Parameters:
group- the group identifierid- input integer- Returns:
- partition identification
-
compareTo
- Specified by:
compareToin interfaceComparable<PartitionId>
-
group
Returns the partition group name.- Returns:
- the partition group name
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractIdentifier<Integer>
-
equals
- Overrides:
equalsin classAbstractIdentifier<Integer>
-
toString
- Overrides:
toStringin classAbstractIdentifier<Integer>
-