public static final class API.Match.Case2<T,T1,T2,R> extends Object implements API.Match.Case<T,R>
Modifier and Type | Method and Description |
---|---|
R |
apply(T obj)
Applies this function to the given argument and returns the result.
|
boolean |
isDefinedAt(T obj)
Tests if a value is contained in the function's domain.
|
public R apply(T obj)
PartialFunction
apply
in interface PartialFunction<T,R>
obj
- the argumentpublic boolean isDefinedAt(T obj)
PartialFunction
isDefinedAt
in interface PartialFunction<T,R>
obj
- a potential function argumentCopyright © 2019. All Rights Reserved.