Class ListHelper<T>

java.lang.Object
org.reactfx.util.ListHelper<T>
Direct Known Subclasses:
ListHelper.MultiElemHelper, ListHelper.SingleElemHelper

public abstract class ListHelper<T> extends Object
  • Constructor Details

    • ListHelper

      private ListHelper()
  • Method Details

    • get

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

      public static <T> ListHelper<T> add(ListHelper<T> listHelper, T elem)
    • remove

      public static <T> ListHelper<T> remove(ListHelper<T> listHelper, T elem)
    • forEach

      public static <T> void forEach(ListHelper<T> listHelper, Consumer<? super T> f)
    • forEachBetween

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

      public static <T> Iterator<T> iterator(ListHelper<T> listHelper)
    • iterator

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

      public static <T> Optional<T> reduce(ListHelper<T> listHelper, BinaryOperator<T> f)
    • reduce

      public static <T, U> U reduce(ListHelper<T> listHelper, U unit, BiFunction<U,T,U> f)
    • toArray

      public static <T> T[] toArray(ListHelper<T> listHelper, 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)
    • add

      abstract ListHelper<T> add(T elem)
    • remove

      abstract ListHelper<T> remove(T elem)
    • forEach

      abstract void forEach(Consumer<? super T> f)
    • forEachBetween

      abstract void forEachBetween(int from, int to, Consumer<? super T> f)
    • iterator

      abstract Iterator<T> iterator()
    • iterator

      abstract Iterator<T> iterator(int from, int to)
    • reduce

      abstract Optional<T> reduce(BinaryOperator<T> f)
    • reduce

      abstract <U> U reduce(U unit, BiFunction<U,T,U> f)
    • toArray

      abstract T[] toArray(IntFunction<T[]> allocator)
    • size

      abstract int size()