edu.stanford.nlp.util
Interface Iterables.IncrementComparator<V1,V2>

Type Parameters:
V1 - Type of first iterator
V2 - Type of second iterator
Enclosing class:
Iterables

public static interface Iterables.IncrementComparator<V1,V2>

A comparator used by the merge functions to determine which of two iterators to increment by one of the merge functions.


Method Summary
 int compare(V1 a, V2 b)
          Returns -1 if the value of a should come before the value of b, +1 if the value of b should come before the value of a, or 0 if the two should be merged together.
 

Method Detail

compare

int compare(V1 a,
            V2 b)
Returns -1 if the value of a should come before the value of b, +1 if the value of b should come before the value of a, or 0 if the two should be merged together.



Stanford NLP Group