public class DistinctBatch<T> extends AbstractBatch<T> implements UnsortedSetBatch<T>
| Constructor and Description |
|---|
DistinctBatch(Batch<T> batch,
ConcurrentHashMap<T,Boolean> distinct) |
| Modifier and Type | Method and Description |
|---|---|
<V> UnsortedBagBatch<V> |
collect(Function<? super T,? extends V> function) |
<V> UnsortedBagBatch<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
void |
forEach(Procedure<? super T> procedure) |
UnsortedSetBatch<T> |
select(Predicate<? super T> predicate) |
count, makeString, max, maxBy, min, minBy, sumOfDouble, sumOfFloat, sumOfInt, sumOfLongequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, makeString, max, maxBy, min, minBy, sumOfDouble, sumOfFloat, sumOfInt, sumOfLongpublic DistinctBatch(Batch<T> batch, ConcurrentHashMap<T,Boolean> distinct)
public UnsortedSetBatch<T> select(Predicate<? super T> predicate)
public <V> UnsortedBagBatch<V> collect(Function<? super T,? extends V> function)
public <V> UnsortedBagBatch<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface Batch<T>flatCollect in interface UnsortedSetBatch<T>Copyright © 2004–2017. All rights reserved.