Class 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 Detail

      • JSONArrayCollector

        public JSONArrayCollector()
    • Method Detail

      • supplier

        public java.util.function.Supplier<org.json.JSONArray> supplier()
        Specified by:
        supplier in interface java.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 interface java.util.stream.Collector<T,​org.json.JSONArray,​org.json.JSONArray>
      • combiner

        public java.util.function.BinaryOperator<org.json.JSONArray> combiner()
        Specified by:
        combiner in interface java.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 interface java.util.stream.Collector<T,​org.json.JSONArray,​org.json.JSONArray>
      • characteristics

        public Set<java.util.stream.Collector.Characteristics> characteristics()
        Specified by:
        characteristics in interface java.util.stream.Collector<T,​org.json.JSONArray,​org.json.JSONArray>