T- type of the function input, called domain of the function
R- type of the function output, called codomain of the function
public interface PartialFunction<T,R>
If the function is not defined for a specific value, apply() may produce an arbitrary result. More specifically it is not guaranteed that the function will throw an exception.
If the function is defined for a specific value, apply() may still throw an exception.
t- the argument
boolean isDefinedAt(T value)
value- a potential function argument
Copyright © 2017. All Rights Reserved.