Package com.github.tonivade.purefun.core
Interface PartialFunction1<A,R>
public interface PartialFunction1<A,R>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <B> PartialFunction1<A, B> default RapplyOrElse(A value, Function1<? super A, ? extends R> orElse) static <R> PartialFunction1<Integer, R> from(ImmutableArray<? extends R> array) static <K,V> PartialFunction1 <K, V> from(ImmutableMap<? super K, ? extends V> map) booleanisDefinedAt(A value) lift()static <A,R> PartialFunction1 <A, R> default PartialFunction1<A, R> orElse(PartialFunction1<? super A, ? extends R> other)
-
Method Details
-
apply
-
isDefinedAt
-
lift
-
andThen
-
compose
-
orElse
-
applyOrElse
-
of
static <A,R> PartialFunction1<A,R> of(Matcher1<? super A> isDefined, Function1<? super A, ? extends R> apply) -
from
-
from
-