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 java.lang.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$ $Date$
-
-
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()
java.util.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>
-
characteristics
public java.util.Set<java.util.stream.Collector.Characteristics> characteristics()
- Specified by:
characteristics
in interfacejava.util.stream.Collector<T,org.json.JSONArray,org.json.JSONArray>
-
-