Package io.vavr

Class API.Match.Case3<T,​T1,​T2,​T3,​R>

  • Type Parameters:
    T - Type of the value being matched
    T1 - Intermediate type 1
    T2 - Intermediate type 2
    T3 - Intermediate type 3
    R - Return value type
    All Implemented Interfaces:
    API.Match.Case<T,​R>, Function1<T,​R>, PartialFunction<T,​R>, java.io.Serializable, java.util.function.Function<T,​R>
    Enclosing class:
    API.Match<T>

    public static final class API.Match.Case3<T,​T1,​T2,​T3,​R>
    extends java.lang.Object
    implements API.Match.Case<T,​R>
    API.Match.Case implementation for a case with 3 intermediate types
    See Also:
    Serialized Form
    • Method Detail

      • apply

        public R apply​(T obj)
        Description copied from interface: PartialFunction
        Applies this function to the given argument and returns the result.
        Specified by:
        apply in interface java.util.function.Function<T,​T1>
        Specified by:
        apply in interface Function1<T,​T1>
        Specified by:
        apply in interface PartialFunction<T,​T1>
        Parameters:
        obj - the input argument
        Returns:
        the result of applying this function to the input
      • isDefinedAt

        public boolean isDefinedAt​(T obj)
        Description copied from interface: PartialFunction
        Tests whether a value is contained in the function's domain.
        Specified by:
        isDefinedAt in interface PartialFunction<T,​T1>
        Parameters:
        obj - a potential input to the function
        Returns:
        true if the given value is contained in the function's domain, false otherwise