public class DiffTreeIterator extends Object implements Iterator<Diff>
 Since we're walking over Matches but returning Diffs, this is not a good candidate for guava's filters.
 We're providing the custom setFilter(Predicate) and
 setPruningFilter(Predicate) to allow for filtering or pruning the the iteration.
 
| Constructor and Description | 
|---|
| DiffTreeIterator(Match start)Constructs our iterator given the root of the Match tree to iterate over. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | hasNext() | 
| Diff | next() | 
| void | remove() | 
| void | setFilter(com.google.common.base.Predicate<? super Diff> filter)Sets the criterion that Diffs must meet to be returned by this iterator. | 
| void | setPruningFilter(com.google.common.base.Predicate<? super Match> pruningFilter)Sets the pruning filter for this iterator. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic DiffTreeIterator(Match start)
start - Starting match of the tree we'll iterate over.public void setFilter(com.google.common.base.Predicate<? super Diff> filter)
filter - The filter differences must meet.public void setPruningFilter(com.google.common.base.Predicate<? super Match> pruningFilter)
pruningFilter - The pruning filter for this iterator.public boolean hasNext()
hasNext in interface Iterator<Diff>Iterator.hasNext()public Diff next()
next in interface Iterator<Diff>Iterator.next()public void remove()
remove in interface Iterator<Diff>Iterator.remove()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.