Package foundation.omni.consensus
Class ConsensusComparison
java.lang.Object
foundation.omni.consensus.ConsensusComparison
- All Implemented Interfaces:
Iterable<ConsensusEntryPair>
A pair of ConsensusSnapshots with comparison iterators for Spock tests
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Iterates a ConsensusComparison pair-by-pair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ConsensusSnapshot
getC1()
final ConsensusSnapshot
getC2()
iterator()
Return an iterator that will iterate through the union of addresses from the two ConsensusSnapshot objects, sorted by addressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConsensusComparison
-
-
Method Details
-
iterator
Return an iterator that will iterate through the union of addresses from the two ConsensusSnapshot objects, sorted by address- Specified by:
iterator
in interfaceIterable<ConsensusEntryPair>
- Returns:
- the iterator
-
getC1
-
getC2
-