Class ListHelper<T>

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ListHelper()  
    • Method Summary

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

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

      • ListHelper

        private ListHelper()
    • Method Detail

      • get

        public static <T> T get​(ListHelper<T> listHelper,
                                int index)
      • forEach

        public static <T> void forEach​(ListHelper<T> listHelper,
                                       java.util.function.Consumer<? super T> f)
      • forEachBetween

        public static <T> void forEachBetween​(ListHelper<T> listHelper,
                                              int from,
                                              int to,
                                              java.util.function.Consumer<? super T> f)
      • iterator

        public static <T> java.util.Iterator<T> iterator​(ListHelper<T> listHelper)
      • iterator

        public static <T> java.util.Iterator<T> iterator​(ListHelper<T> listHelper,
                                                         int from,
                                                         int to)
      • reduce

        public static <T> java.util.Optional<T> reduce​(ListHelper<T> listHelper,
                                                       java.util.function.BinaryOperator<T> f)
      • reduce

        public static <T,​U> U reduce​(ListHelper<T> listHelper,
                                           U unit,
                                           java.util.function.BiFunction<U,​T,​U> f)
      • toArray

        public static <T> T[] toArray​(ListHelper<T> listHelper,
                                      java.util.function.IntFunction<T[]> allocator)
      • isEmpty

        public static <T> boolean isEmpty​(ListHelper<T> listHelper)
      • size

        public static <T> int size​(ListHelper<T> listHelper)
      • get

        abstract T get​(int index)
      • forEach

        abstract void forEach​(java.util.function.Consumer<? super T> f)
      • forEachBetween

        abstract void forEachBetween​(int from,
                                     int to,
                                     java.util.function.Consumer<? super T> f)
      • iterator

        abstract java.util.Iterator<T> iterator()
      • iterator

        abstract java.util.Iterator<T> iterator​(int from,
                                                int to)
      • reduce

        abstract java.util.Optional<T> reduce​(java.util.function.BinaryOperator<T> f)
      • reduce

        abstract <U> U reduce​(U unit,
                              java.util.function.BiFunction<U,​T,​U> f)
      • toArray

        abstract T[] toArray​(java.util.function.IntFunction<T[]> allocator)
      • size

        abstract int size()