Class LL.Nil<T>

java.lang.Object
org.reactfx.util.LL<T>
org.reactfx.util.LL.Nil<T>
All Implemented Interfaces:
Iterable<T>
Enclosing class:
LL<T>

private static class LL.Nil<T> extends LL<T>
  • Field Details

    • INSTANCE

      private static final LL.Nil<?> INSTANCE
  • Constructor Details

    • Nil

      private Nil()
  • Method Details

    • instance

      static <T> LL.Nil<T> instance()
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class LL<T>
    • size

      public int size()
      Specified by:
      size in class LL<T>
    • head

      public T head()
      Specified by:
      head in class LL<T>
    • tail

      public LL<T> tail()
      Specified by:
      tail in class LL<T>
    • map

      public <U> LL<U> map(Function<? super T,? extends U> f)
      Specified by:
      map in class LL<T>
    • iterator

      public Iterator<T> iterator()
    • fold

      public <R> R fold(R acc, BiFunction<? super R,? super T,? extends R> reduction)
      Specified by:
      fold in class LL<T>
    • mapReduce

      public <R> Optional<R> mapReduce(Function<? super T,? extends R> map, BinaryOperator<R> reduce)
      Specified by:
      mapReduce in class LL<T>