public class FunctionMatcher<T> implements Matcher<T>, TypedMatcher, EquivalentMatcher
Delegates matching to lambda function
Matcher.DefaultImplsTypedMatcher.DefaultImpls| Constructor and Description |
|---|
FunctionMatcher(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> matchingFunc,
kotlin.reflect.KClass<?> argumentType)
Delegates matching to lambda function
|
| Modifier and Type | Method and Description |
|---|---|
kotlin.jvm.functions.Function1<T,java.lang.Boolean> |
component1() |
kotlin.reflect.KClass<?> |
component2() |
FunctionMatcher<T> |
copy(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> matchingFunc,
kotlin.reflect.KClass<?> argumentType)
Delegates matching to lambda function
|
boolean |
equals(java.lang.Object p) |
Matcher<java.lang.Object> |
equivalent() |
kotlin.reflect.KClass<?> |
getArgumentType() |
kotlin.jvm.functions.Function1<T,java.lang.Boolean> |
getMatchingFunc() |
int |
hashCode() |
boolean |
match(T arg) |
java.lang.String |
toString() |
match, substitutecheckType, getArgumentTypeequivalentpublic FunctionMatcher(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> matchingFunc,
kotlin.reflect.KClass<?> argumentType)
Delegates matching to lambda function
public Matcher<java.lang.Object> equivalent()
public boolean match(T arg)
public java.lang.String toString()
public kotlin.jvm.functions.Function1<T,java.lang.Boolean> getMatchingFunc()
public kotlin.reflect.KClass<?> getArgumentType()
public kotlin.jvm.functions.Function1<T,java.lang.Boolean> component1()
public kotlin.reflect.KClass<?> component2()
public FunctionMatcher<T> copy(kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> matchingFunc, kotlin.reflect.KClass<?> argumentType)
Delegates matching to lambda function
public int hashCode()
public boolean equals(java.lang.Object p)