Package org.apache.calcite.test
Class Matchers.ComposingMatcher<F,T>
- java.lang.Object
-
- org.hamcrest.BaseMatcher<T>
-
- org.hamcrest.TypeSafeMatcher<F>
-
- org.apache.calcite.test.Matchers.ComposingMatcher<F,T>
-
- Type Parameters:
F
- From type: the type of value to be matchedT
- To type: type returned by function, and the resulting matcher
- All Implemented Interfaces:
org.hamcrest.Matcher<F>
,org.hamcrest.SelfDescribing
- Enclosing class:
- Matchers
private static class Matchers.ComposingMatcher<F,T> extends org.hamcrest.TypeSafeMatcher<F>
Matcher that transforms the input value using a function before passing to another matcher.
-
-
Constructor Summary
Constructors Constructor Description ComposingMatcher(org.hamcrest.Matcher<T> matcher, java.util.function.Function<F,T> f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
describeMismatchSafely(F item, org.hamcrest.Description mismatchDescription)
void
describeTo(org.hamcrest.Description description)
protected boolean
matchesSafely(F item)
-