Interface OpResult<T>

Type Parameters:
T - the content of the success result.
All Known Subinterfaces:
Just<T>
All Known Implementing Classes:
BinVal, NumVal, OpError, StrVal

public sealed interface OpResult<T> permits Just<T>, OpError<T>
Either success (Just) or error (OpError).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the success value, or null if this is an error.
  • Method Details

    • justOrNull

      T justOrNull()
      Returns the success value, or null if this is an error.
      Returns:
      the success value, or null if this is an error.