Package ucar.nc2.util

Class Optional<T>


  • @Deprecated
    public class Optional<T>
    extends Object
    Deprecated.
    All uses will move to java.util.Optional in ver6
    Optional with an error message when empty
    • Method Detail

      • empty

        public static <T> Optional<T> empty​(String errMessage)
        Deprecated.
      • of

        public static <T> Optional<T> of​(T value)
        Deprecated.
      • get

        public T get()
        Deprecated.
      • isPresent

        public boolean isPresent()
        Deprecated.
      • getErrorMessage

        public String getErrorMessage()
        Deprecated.