Package de.xima.fc.common.data.algebraic


package de.xima.fc.common.data.algebraic
  • Class
    Description
    Base class for emulating algebraic sum types (also known as a discriminated union) of N elements.
    Emulates a sum type consisting of 2 cases.
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
    Emulates a sum type consisting of 1 case.
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
    Emulates a sum type consisting of 0 cases.
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
    OneOfN.OneOf3<T1,T2,T3>
    Emulates a sum type consisting of 3 cases.
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
    OneOfN.OneOf4<T1,T2,T3,T4>
    Emulates a sum type consisting of 4 cases.
    OneOfN.OneOf4Matcher<R,T1,T2,T3,T4>
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.
    OneOfN.OneOf5<T1,T2,T3,T4,T5>
    Emulates a sum type consisting of 5 cases.
    OneOfN.OneOf5Matcher<R,T1,T2,T3,T4,T5>
    A matcher object that contains a handler for each case and can be used to reduce a sum type to a single value.