Class IterableSequence

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

    public class IterableSequence
    extends AbstractSequence<java.lang.Object>
    Sequence for iterable.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<java.lang.Object> iterable  
    • Constructor Summary

      Constructors 
      Constructor Description
      IterableSequence​(java.lang.Iterable<java.lang.Object> iterable)  
    • 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

      • iterable

        private final java.lang.Iterable<java.lang.Object> iterable
    • Constructor Detail

      • IterableSequence

        public IterableSequence​(java.lang.Iterable<java.lang.Object> iterable)
    • Method Detail

      • hintSize

        public int hintSize()
      • newCollector

        public Collector newCollector​(int size)
      • iterator

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