Package it.tidalwave.util.spi
Class ArrayListCollectorSupport<COLLECTED_TYPE,COLLECTING_TYPE>
- java.lang.Object
-
- it.tidalwave.util.spi.ArrayListCollectorSupport<COLLECTED_TYPE,COLLECTING_TYPE>
-
- Type Parameters:
COLLECTED_TYPE
- the type of collected itemsCOLLECTING_TYPE
- the type of collecting item
- All Implemented Interfaces:
java.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
public abstract class ArrayListCollectorSupport<COLLECTED_TYPE,COLLECTING_TYPE> extends java.lang.Object implements java.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
A supportCollector
which uses anArrayList
as the accumulator.- Author:
- Fabrizio Giudici
-
-
Constructor Summary
Constructors Constructor Description ArrayListCollectorSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiConsumer<java.util.List<COLLECTED_TYPE>,COLLECTED_TYPE>
accumulator()
java.util.Set<java.util.stream.Collector.Characteristics>
characteristics()
java.util.function.BinaryOperator<java.util.List<COLLECTED_TYPE>>
combiner()
java.util.function.Supplier<java.util.List<COLLECTED_TYPE>>
supplier()
-
-
-
Method Detail
-
supplier
@Nonnull public java.util.function.Supplier<java.util.List<COLLECTED_TYPE>> supplier()
- Specified by:
supplier
in interfacejava.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
-
accumulator
@Nonnull public java.util.function.BiConsumer<java.util.List<COLLECTED_TYPE>,COLLECTED_TYPE> accumulator()
- Specified by:
accumulator
in interfacejava.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
-
combiner
@Nonnull public java.util.function.BinaryOperator<java.util.List<COLLECTED_TYPE>> combiner()
- Specified by:
combiner
in interfacejava.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
-
characteristics
@Nonnull public java.util.Set<java.util.stream.Collector.Characteristics> characteristics()
- Specified by:
characteristics
in interfacejava.util.stream.Collector<COLLECTED_TYPE,java.util.List<COLLECTED_TYPE>,COLLECTING_TYPE>
-
-