Class Maybe<T>


  • public abstract class Maybe<T>
    extends java.lang.Object
    • Method Detail

      • isNothing

        public abstract boolean isNothing()
      • isJust

        public abstract boolean isJust()
      • getJust

        public abstract T getJust()
      • get

        public abstract T get​(T def)
      • toString

        public abstract java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public abstract int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public abstract boolean equals​(Maybe<T> other)
      • Just

        public static <T> Maybe<T> Just​(T value)
      • Nothing

        public static <T> Maybe<T> Nothing()