Package com.github.tonivade.purefun.core
Interface Matcher1<A>
- All Superinterfaces:
Recoverable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A> Matcher1<A> static <A> Matcher1<A> always()static <A> Matcher1<A> static <A> Matcher1<A> instanceOf(Class<?> type) static <A> Matcher1<A> invalid()static <A> Matcher1<A> is(A other) static <A> Matcher1<A> isIn(A... values) static <A> Matcher1<A> static <A> Matcher1<A> isNull()default booleannegate()static <A> Matcher1<A> never()static <A> Matcher1<A> static <A> Matcher1<A> booleanMethods inherited from interface com.github.tonivade.purefun.core.Recoverable
sneakyThrow
-
Method Details
-
match
-
run
- Throws:
Throwable
-
asFunction
-
and
-
or
-
negate
-
not
-
never
-
always
-
invalid
-
instanceOf
-
is
-
isIn
-
isNull
-
isNotNull
-
allOf
-
anyOf
-
otherwise
-