Skip to content

Commit

Permalink
Add TODO in ConsensusComparison
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Aug 4, 2020
1 parent f7aca7a commit ec2dfe8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
//import java.util.Spliterator;
//import java.util.Spliterators;

/**
* A pair of ConsensusSnapshots with comparison iterators for Spock tests
Expand Down Expand Up @@ -43,6 +45,13 @@ public Iterator<ConsensusEntryPair> iterator() {
return new PairIterator(this, unionAddresses.iterator());
}

// TODO: Get a working spliterator @Override

// @Override
// public Spliterator<ConsensusEntryPair> spliterator() {
// return Spliterators.spliterator(iterator(), unionAddresses.size(), Spliterator.NONNULL | Spliterator.DISTINCT);
// }

public final ConsensusSnapshot getC1() {
return c1;
}
Expand Down

0 comments on commit ec2dfe8

Please sign in to comment.