Package fj.data

Class Option.Some<A>

java.lang.Object
fj.data.Option<A>
fj.data.Option.Some<A>
All Implemented Interfaces:
Iterable<A>
Enclosing class:
Option<A>

private static final class Option.Some<A> extends Option<A>
  • Field Details

    • a

      private final A a
  • Constructor Details

    • Some

      Some(A a)
  • Method Details

    • some

      public A some()
      Description copied from class: Option
      Returns the value from this optional value, or fails if there is no value.
      Specified by:
      some in class Option<A>
      Returns:
      The value from this optional value, or fails if there is no value.