Class LL.Nil<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>
    Enclosing class:
    LL<T>

    private static class LL.Nil<T>
    extends LL<T>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.reactfx.util.LL

        LL.Cons<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static LL.Nil<?> INSTANCE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Nil()  
    • Field Detail

      • INSTANCE

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

      • Nil

        private Nil()
    • Method Detail

      • 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​(java.util.function.Function<? super T,​? extends U> f)
        Specified by:
        map in class LL<T>
      • iterator

        public java.util.Iterator<T> iterator()
      • fold

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

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