public class MappingYieldingAccumulator<OutType,InType,MappedType> extends YieldingAccumulator<OutType,InType>
Constructor and Description |
---|
MappingYieldingAccumulator(com.google.common.base.Function<InType,MappedType> fn,
YieldingAccumulator<OutType,MappedType> baseAccumulator) |
Modifier and Type | Method and Description |
---|---|
OutType |
accumulate(OutType accumulated,
InType in) |
void |
reset() |
void |
yield() |
boolean |
yielded() |
public MappingYieldingAccumulator(com.google.common.base.Function<InType,MappedType> fn, YieldingAccumulator<OutType,MappedType> baseAccumulator)
public void yield()
yield
in class YieldingAccumulator<OutType,InType>
public boolean yielded()
yielded
in class YieldingAccumulator<OutType,InType>
public void reset()
reset
in class YieldingAccumulator<OutType,InType>
public OutType accumulate(OutType accumulated, InType in)
accumulate
in class YieldingAccumulator<OutType,InType>
Copyright © 2011–2017. All rights reserved.