| java.lang.Object net.sf.jga.algorithms.Merge net.sf.jga.util.MergeIterator
MergeIterator | public class MergeIterator extends Merge.MergeIterator implements Iterable<T>(Code) | | Iterator that merges the contents of two input iterators.
Note -- in addition to this class being deprecated in order to be moved,
its implementation of Iterable is also deprecated: the successor class
will not implement Iterable.
Copyright © 2003-2005 David A. Hall
|
Constructor Summary | |
public | MergeIterator(Iterator<? extends T> base1, Iterator<? extends T> base2, Comparator<T> comp) Builds a MergeIterator for the given base iterators that uses the given
Comparator to compare corresponding elements. | public | MergeIterator(Iterator<? extends T> base1, Iterator<? extends T> base2, BinaryFunctor<T, T, Boolean> pred) Builds a MergeIterator for the given base iterators that uses the given
predicate to compare corresponding elements. |
MergeIterator | public MergeIterator(Iterator<? extends T> base1, Iterator<? extends T> base2, Comparator<T> comp)(Code) | | Builds a MergeIterator for the given base iterators that uses the given
Comparator to compare corresponding elements. The Comparator will be
used with a LessEqualComp predicate.
throws: IllegalArgumentException - if either argument is null |
MergeIterator | public MergeIterator(Iterator<? extends T> base1, Iterator<? extends T> base2, BinaryFunctor<T, T, Boolean> pred)(Code) | | Builds a MergeIterator for the given base iterators that uses the given
predicate to compare corresponding elements. The predicate should return
TRUE if its first argument is less than or equal to the second.
throws: IllegalArgumentException - if either argument is null |
Methods inherited from net.sf.jga.algorithms.Merge | public static Iterable<T> append(T[] ts1, T[] ts2)(Code)(Java Doc) public static Iterable<T> append(Iterable<? extends T> i1, Iterable<? extends T> i2)(Code)(Java Doc) public static Iterator<T> append(Iterator<? extends T> iter1, Iterator<? extends T> iter2)(Code)(Java Doc) public static TCollection append(Iterable<? extends T> cin1, Iterable<? extends T> cin2, TCollection cout)(Code)(Java Doc) public static Iterable<T> merge(T[] ts1, T[] ts2)(Code)(Java Doc) public static Iterable<T> merge(T[] ts1, T[] ts2, Comparator<T> comp)(Code)(Java Doc) public static Iterable<T> merge(T[] ts1, T[] ts2, BinaryFunctor<T, T, Boolean> pred)(Code)(Java Doc) public static Iterable<T> merge(Iterable<? extends T> i1, Iterable<? extends T> i2)(Code)(Java Doc) public static Iterable<T> merge(Iterable<? extends T> i1, Iterable<? extends T> i2, Comparator<T> comp)(Code)(Java Doc) public static Iterable<T> merge(Iterable<? extends T> i1, Iterable<? extends T> i2, BinaryFunctor<T, T, Boolean> pred)(Code)(Java Doc) public static Iterator<T> merge(Iterator<? extends T> iter1, Iterator<? extends T> iter2)(Code)(Java Doc) public static Iterator<T> merge(Iterator<? extends T> iter1, Iterator<? extends T> iter2, Comparator<T> comp)(Code)(Java Doc) public static Iterator<T> merge(Iterator<? extends T> iter1, Iterator<? extends T> iter2, BinaryFunctor<T, T, Boolean> pred)(Code)(Java Doc) public static TCollection merge(Iterable<? extends T> cin1, Iterable<? extends T> cin2, TCollection cout)(Code)(Java Doc) public static TCollection merge(Iterable<? extends T> cin1, Iterable<? extends T> cin2, Comparator<T> comp, TCollection cout)(Code)(Java Doc) public static TCollection merge(Iterable<? extends T> cin1, Iterable<? extends T> cin2, BinaryFunctor<T, T, Boolean> pred, TCollection cout)(Code)(Java Doc)
|
|
|