Class Nullable<T>


  • public final class Nullable<T>
    extends java.lang.Object
    • Method Detail

      • ofNull

        public static <T> Nullable<T> ofNull()
      • of

        public static <T> Nullable<T> of​(T value)
      • empty

        public static <T> Nullable<T> empty()
      • ofOptional

        public static <T> Nullable<T> ofOptional​(java.util.Optional<T> value)
      • isNull

        public boolean isNull()
      • isEmpty

        public boolean isEmpty()
      • get

        public T get()
      • map

        public <U> Nullable<U> map​(java.util.function.Function<? super T,​? extends U> mapper)
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object