public static class MatchesFunction.Builder<T,R> extends Object
MatchesFunction
matcher.Constructor and Description |
---|
Builder(T source)
Creates a new Builder to build a
MatchesFunction matcher for the given source object. |
Modifier and Type | Method and Description |
---|---|
MatchesFunction.Builder<T,R> |
byValueOf(String functionName,
Function<T,R> function)
Changes the function used by the
MatchesFunction matcher. |
Matcher<T> |
matches(Function<R,Matcher<R>> resultMatcherSupplier)
Changes the result Matcher supplier function used by the
MatchesFunction matcher
and returns the specified MatchesFunction matcher. |
public Builder(T source)
MatchesFunction
matcher for the given source object.public MatchesFunction.Builder<T,R> byValueOf(String functionName, Function<T,R> function)
MatchesFunction
matcher.public Matcher<T> matches(Function<R,Matcher<R>> resultMatcherSupplier)
MatchesFunction
matcher
and returns the specified MatchesFunction
matcher.Copyright © 2022 The Cornutum Project. All rights reserved.