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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIfDefined, lift, unlift
public R apply(T obj)
PartialFunction
public boolean isDefinedAt(T obj)
PartialFunction
isDefinedAt
in interface PartialFunction<T,R>
obj
- a potential function argumentCopyright © 2020. All Rights Reserved.