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 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: 23034 $ $Date: 2019-08-05 16:52:47 -0300 (Mon, 05 Aug 2019) $
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.stream.Collector

        java.util.stream.Collector.Characteristics
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 java.util.Set<java.util.stream.Collector.Characteristics> characteristics()
        Specified by:
        characteristics in interface java.util.stream.Collector<T,​org.json.JSONArray,​org.json.JSONArray>