Constructor and Description |
---|
CombiningIterable(Iterable<T> it,
Comparator<T> comparator,
BinaryOperator<T> fn) |
Modifier and Type | Method and Description |
---|---|
static <T> CombiningIterable<T> |
create(Iterable<T> it,
Comparator<T> comparator,
BinaryOperator<T> fn) |
static <T> CombiningIterable<T> |
createSplatted(Iterable<? extends Iterable<T>> in,
Comparator<T> comparator)
Creates a CombiningIterable around a MergeIterable such that equivalent elements are thrown away
If there are multiple Iterables in parameter "in" with equivalent objects, there are no guarantees
around which object will win.
|
Iterator<T> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CombiningIterable(Iterable<T> it, Comparator<T> comparator, BinaryOperator<T> fn)
public static <T> CombiningIterable<T> createSplatted(Iterable<? extends Iterable<T>> in, Comparator<T> comparator)
T
- Type of objectin
- An Iterable of Iterables to be mergedcomparator
- the Comparator to determine sort and equalitypublic static <T> CombiningIterable<T> create(Iterable<T> it, Comparator<T> comparator, BinaryOperator<T> fn)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.