Class Option.Some<T>

java.lang.Object
org.apache.thrift.Option<T>
org.apache.thrift.Option.Some<T>
Type Parameters:
T - The type of value
Enclosing class:
Option<T>

public static class Option.Some<T> extends Option<T>
The Some type, representing an existence of some value
  • Constructor Details

    • Some

      public Some(T value)
  • 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