| java.lang.Object net.sf.jga.algorithms.Merge net.sf.jga.util.MergeIterable
MergeIterable | public class MergeIterable extends Merge.MergeIterable (Code) | | Produces iterators over the combined contents of two iterables.
Iterator that merges the contents of two input iterators.
Copyright © 2005 David A. Hall
author: David A. Hall |
Constructor Summary | |
public | MergeIterable(Iterable<? extends T> base1, Iterable<? extends T> base2, Comparator<T> comp) Builds a MergeIterable for the given base iterators that uses the given
Comparator to compare corresponding elements. | public | MergeIterable(Iterable<? extends T> base1, Iterable<? extends T> base2, BinaryFunctor<T, T, Boolean> pred) Builds a MergeIterable for the given base iterators that uses the given
predicate to compare corresponding elements. |
MergeIterable | public MergeIterable(Iterable<? extends T> base1, Iterable<? extends T> base2, Comparator<T> comp)(Code) | | Builds a MergeIterable 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 |
MergeIterable | public MergeIterable(Iterable<? extends T> base1, Iterable<? extends T> base2, BinaryFunctor<T, T, Boolean> pred)(Code) | | Builds a MergeIterable 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 base iterable 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)
|
|
|