Package ucar.nc2.util

Class Optional<T>

java.lang.Object
ucar.nc2.util.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 Details

    • 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.