Class Option

java.lang.Object
eu.bandm.tools.ramus.runtime2.Data
eu.bandm.tools.ramus.runtime2.Option

public abstract class Option extends Data
  • Field Details

    • none

      public static final Option none
  • Constructor Details

    • Option

      public Option()
  • Method Details

    • just

      public static Option just(Data value)
    • isPresent

      public abstract boolean isPresent()
    • get

      public Data get()
    • getOrElse

      public Data getOrElse(Data defaultValue)
    • getOrElse

      public abstract Data getOrElse(Supplier<? extends Data> defaultValue)
    • viewOrElse

      public static <A> Data.View<A> viewOrElse(Data.View<A> body, A defaultValue)
    • viewOrElse

      public static <A> Data.View<A> viewOrElse(Data.View<A> body, Supplier<? extends A> defaultValue)
    • viewOptional

      public static <A> Data.View<Optional<A>> viewOptional(Data.View<A> body)