Interface OneOfN.JustMatcher<R,T1>

Type Parameters:
R - Type of the value returned by the mapping function for each case.
T1 - Type of the first case.
Enclosing class:
OneOfN

public static interface OneOfN.JustMatcher<R,T1>
A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value. This interface contains a default implementation for each case that simply returns null.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    first(T1 first)
     
  • Method Details

    • first

      default R first(T1 first)
      Parameters:
      first - The value of the first case.
      Returns:
      The mapped value for the first case