Class ProxyableListAssert.ListFromStream<ELEMENT,​STREAM extends java.util.stream.BaseStream<ELEMENT,​STREAM>>

  • All Implemented Interfaces:
    java.lang.Iterable<ELEMENT>, java.util.Collection<ELEMENT>, java.util.List<ELEMENT>
    Enclosing class:
    ProxyableListAssert<ELEMENT>

    static class ProxyableListAssert.ListFromStream<ELEMENT,​STREAM extends java.util.stream.BaseStream<ELEMENT,​STREAM>>
    extends java.util.AbstractList<ELEMENT>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<ELEMENT> list  
      private java.util.stream.BaseStream<ELEMENT,​STREAM> stream  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ELEMENT get​(int index)  
      private java.util.List<ELEMENT> initList()  
      int size()  
      java.util.stream.Stream<ELEMENT> stream()  
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Field Detail

      • list

        private java.util.List<ELEMENT> list
    • Constructor Detail

      • ListFromStream

        public ListFromStream​(java.util.stream.BaseStream<ELEMENT,​STREAM> stream)
    • Method Detail

      • stream

        public java.util.stream.Stream<ELEMENT> stream()
      • initList

        private java.util.List<ELEMENT> initList()
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<ELEMENT>
        Specified by:
        size in interface java.util.List<ELEMENT>
        Specified by:
        size in class java.util.AbstractCollection<ELEMENT>
      • get

        public ELEMENT get​(int index)
        Specified by:
        get in interface java.util.List<ELEMENT>
        Specified by:
        get in class java.util.AbstractList<ELEMENT>