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 TypeClassDescriptionclassIterates a ConsensusComparison pair-by-pair -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ConsensusSnapshotgetC1()final ConsensusSnapshotgetC2()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, waitMethods 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:
iteratorin interfaceIterable<ConsensusEntryPair>- Returns:
- the iterator
-
getC1
-
getC2
-