Constructor and Description |
---|
CombiningIterable(Iterable<InType> it,
Comparator<InType> comparator,
com.metamx.common.guava.nary.BinaryFn<InType,InType,InType> fn) |
Modifier and Type | Method and Description |
---|---|
static <InType> CombiningIterable<InType> |
create(Iterable<InType> it,
Comparator<InType> comparator,
com.metamx.common.guava.nary.BinaryFn<InType,InType,InType> fn) |
static <InType> CombiningIterable<InType> |
createSplatted(Iterable<? extends Iterable<InType>> in,
Comparator<InType> 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<InType> |
iterator() |
public static <InType> CombiningIterable<InType> createSplatted(Iterable<? extends Iterable<InType>> in, Comparator<InType> comparator)
InType
- Type of objectin
- An Iterable of Iterables to be mergedcomparator
- the Comparator to determine sort and equalitypublic static <InType> CombiningIterable<InType> create(Iterable<InType> it, Comparator<InType> comparator, com.metamx.common.guava.nary.BinaryFn<InType,InType,InType> fn)
Copyright © 2011–2015. All rights reserved.