public class PartitionDiff
extends java.lang.Object
partition
values.Constructor and Description |
---|
PartitionDiff(Partition oldValue,
Partition newValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
boolean |
hasChanged()
Returns if there are differences between the two values.
|
int |
hashCode() |
boolean |
isAdded(NodeId nodeId)
Returns if the specified node is introduced in the new value.
|
boolean |
isRemoved(NodeId nodeId)
Returns if the specified node is removed in the new value.
|
Partition |
newValue()
Returns the new partition value.
|
Partition |
oldValue()
Returns the old partition value.
|
PartitionId |
partitionId()
Returns the new partition identifier.
|
java.lang.String |
toString() |
public PartitionId partitionId()
public Partition oldValue()
public Partition newValue()
public boolean hasChanged()
true
if yes; false
otherwisepublic boolean isAdded(NodeId nodeId)
nodeId
- node identifiertrue
if yes; false
otherwisepublic boolean isRemoved(NodeId nodeId)
nodeId
- node identifiertrue
if yes; false
otherwisepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object