Package lumis.util.collections
Class JSONArrayCollector<T>
- java.lang.Object
-
- lumis.util.collections.JSONArrayCollector<T>
-
- Type Parameters:
T
- the type of objects being processed
- All Implemented Interfaces:
java.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
public class JSONArrayCollector<T> extends Object implements java.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
Collector that joins a stream into a JSONArray.- Since:
- 12.0.0
- Version:
- $Revision: 23034 $ $Date: 2019-08-05 16:52:47 -0300 (Mon, 05 Aug 2019) $
-
-
Constructor Summary
Constructors Constructor Description JSONArrayCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiConsumer<org.json.JSONArray,T>
accumulator()
Set<java.util.stream.Collector.Characteristics>
characteristics()
java.util.function.BinaryOperator<org.json.JSONArray>
combiner()
java.util.function.Function<org.json.JSONArray,org.json.JSONArray>
finisher()
java.util.function.Supplier<org.json.JSONArray>
supplier()
-
-
-
Method Detail
-
supplier
public java.util.function.Supplier<org.json.JSONArray> supplier()
- Specified by:
supplier
in interfacejava.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
-
accumulator
public java.util.function.BiConsumer<org.json.JSONArray,T> accumulator()
- Specified by:
accumulator
in interfacejava.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
-
combiner
public java.util.function.BinaryOperator<org.json.JSONArray> combiner()
- Specified by:
combiner
in interfacejava.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
-
finisher
public java.util.function.Function<org.json.JSONArray,org.json.JSONArray> finisher()
- Specified by:
finisher
in interfacejava.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
-
-