Interface Option<T>

All Known Implementing Classes:
Option.None, Option.Some

public sealed interface Option<T> permits Option.Some<T>, Option.None<T>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final record 
     
    static final record 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static <T> Option.None<T>
     
    static <T> Option.Some<T>
    some(T value)
     
  • Method Details

    • isPresent

      boolean isPresent()
    • some

      static <T> Option.Some<T> some(T value)
    • none

      static <T> Option.None<T> none()