Class Option.None<T>

java.lang.Object
org.apache.thrift.Option<T>
org.apache.thrift.Option.None<T>
Enclosing class:
Option<T>

public static class Option.None<T> extends Option<T>
The None type, representing an absent value (instead of "null")
  • Constructor Details

    • None

      public None()
  • Method Details

    • isDefined

      public boolean isDefined()
      Description copied from class: Option
      Whether the Option is defined or not
      Specified by:
      isDefined in class Option<T>
      Returns:
      true if the Option is defined (of type Some) false if the Option is not defined (of type None)
    • get

      public T get()
      Description copied from class: Option
      Get the value of the Option (if it is defined)
      Specified by:
      get in class Option<T>
      Returns:
      the value
    • toString

      public String toString()
      Overrides:
      toString in class Object