Class ArraySequence

  • All Implemented Interfaces:
    Sequence<java.lang.Object>, java.lang.Iterable<java.lang.Object>

    public class ArraySequence
    extends AbstractSequence<java.lang.Object>
    Sequence for object array.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object a  
      private int len  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArraySequence​(java.lang.Object a)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int hintSize()  
      java.util.Iterator<java.lang.Object> iterator()  
      Collector newCollector​(int size)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Field Detail

      • a

        private final java.lang.Object a
      • len

        private final int len
    • Constructor Detail

      • ArraySequence

        public ArraySequence​(java.lang.Object a)
    • Method Detail

      • hintSize

        public int hintSize()
      • newCollector

        public Collector newCollector​(int size)
      • iterator

        public java.util.Iterator<java.lang.Object> iterator()