Modifier | Constructor and Description |
---|---|
protected |
DefaultPartition()
Constructs an empty partition for the serializer.
|
|
DefaultPartition(Partition other)
Constructs a partition that is a copy of another.
|
|
DefaultPartition(PartitionId id,
Version version,
java.util.Collection<NodeId> members)
Constructs a partition.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
PartitionId |
getId()
Returns the partition identifier.
|
java.util.Collection<NodeId> |
getMembers()
Returns the controller nodes that are members of this partition.
|
Version |
getVersion()
Returns the partition version.
|
int |
hashCode() |
java.lang.String |
toString() |
protected DefaultPartition()
public DefaultPartition(PartitionId id, Version version, java.util.Collection<NodeId> members)
id
- partition identifierversion
- partition versionmembers
- partition member nodespublic DefaultPartition(Partition other)
other
- partition to copypublic PartitionId getId()
Partition
public Version getVersion()
Partition
getVersion
in interface Partition
public java.util.Collection<NodeId> getMembers()
Partition
getMembers
in interface Partition
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object