Class ListHelper.SingleElemHelper<T>

  • Enclosing class:
    ListHelper<T>

    private static class ListHelper.SingleElemHelper<T>
    extends ListHelper<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private T elem  
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleElemHelper​(T elem)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) ListHelper<T> add​(T elem)  
      (package private) void forEach​(java.util.function.Consumer<? super T> f)  
      (package private) void forEachBetween​(int from, int to, java.util.function.Consumer<? super T> f)  
      (package private) T get​(int index)  
      (package private) java.util.Iterator<T> iterator()  
      (package private) java.util.Iterator<T> iterator​(int from, int to)  
      (package private) java.util.Optional<T> reduce​(java.util.function.BinaryOperator<T> f)  
      (package private) <U> U reduce​(U unit, java.util.function.BiFunction<U,​T,​U> f)  
      (package private) ListHelper<T> remove​(T elem)  
      (package private) int size()  
      (package private) T[] toArray​(java.util.function.IntFunction<T[]> allocator)  
      • Methods inherited from class java.lang.Object

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

      • elem

        private final T elem
    • Constructor Detail

      • SingleElemHelper

        SingleElemHelper​(T elem)