@ProtoTypeId(value=1006) public class IracEntryVersion extends Object
It is represented as a vector clock where each site keeps it version.
The site version is composed as a pair (topology id, version).
TopologyIracVersion| Modifier and Type | Class and Description |
|---|---|
static class |
IracEntryVersion.MapEntry |
| Constructor and Description |
|---|
IracEntryVersion(Map<String,TopologyIracVersion> vectorClock) |
| Modifier and Type | Method and Description |
|---|---|
InequalVersionComparisonResult |
compareTo(IracEntryVersion other)
Compares this instance with another
IracEntryVersion instance. |
boolean |
equals(Object o) |
void |
forEach(BiConsumer<String,TopologyIracVersion> consumer)
Iterates over all entries of this version as pairs (site name, site version).
|
int |
hashCode() |
Map<String,TopologyIracVersion> |
toMap()
Converts this instance to a
Map. |
String |
toString() |
public IracEntryVersion(Map<String,TopologyIracVersion> vectorClock)
public Map<String,TopologyIracVersion> toMap()
Map.
The map cannot be modified!.
Map representation of this version.public void forEach(BiConsumer<String,TopologyIracVersion> consumer)
consumer - The BiConsumer.public InequalVersionComparisonResult compareTo(IracEntryVersion other)
IracEntryVersion instance.other - The other IracEntryVersion instance.InequalVersionComparisonResult instance with the compare result.Copyright © 2021 JBoss by Red Hat. All rights reserved.