Interface CBOptionType<T extends CBSerializableType>

Type Parameters:
T - The type of values
All Superinterfaces:
CBSerializableType, Formattable
All Known Implementing Classes:
CBNone, CBSome

public sealed interface CBOptionType<T extends CBSerializableType> extends Formattable, CBSerializableType permits CBNone<T>, CBSome<T>
The option type.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from interface java.util.Formattable

    formatTo
  • Method Details

    • asOptional

      Optional<T> asOptional()
      Returns:
      This value as a Java Optional