Class ArrayCollector

  • All Implemented Interfaces:
    Collector

    public class ArrayCollector
    extends java.lang.Object
    implements Collector
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Object[] array  
      (package private) int i  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayCollector​(int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object e)  
      java.lang.Object getRawContainer()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • array

        java.lang.Object[] array
      • i

        int i
    • Constructor Detail

      • ArrayCollector

        public ArrayCollector​(int size)
    • Method Detail

      • add

        public void add​(java.lang.Object e)
        Specified by:
        add in interface Collector