Class ComparableOrderMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<Comparator<T>>
org.dmfs.jems2.hamcrest.matchers.comparable.ComparableOrderMatcher<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<Comparator<T>>,org.hamcrest.SelfDescribing
public final class ComparableOrderMatcher<T>
extends org.hamcrest.TypeSafeDiagnosingMatcher<Comparator<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddescribeTo(org.hamcrest.Description description) static <T> org.hamcrest.Matcher<Comparator<T>>imposesOrderOf(T... orderedValues) Verifies that theComparatorimposes the given strict ordering on the given elements.protected booleanmatchesSafely(Comparator<T> item, org.hamcrest.Description mismatchDescription) Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher
describeMismatch, matchesMethods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toString
-
Constructor Details
-
ComparableOrderMatcher
-
-
Method Details
-
imposesOrderOf
@SafeVarargs public static <T> org.hamcrest.Matcher<Comparator<T>> imposesOrderOf(T... orderedValues) Verifies that theComparatorimposes the given strict ordering on the given elements. -
matchesSafely
- Specified by:
matchesSafelyin classorg.hamcrest.TypeSafeDiagnosingMatcher<Comparator<T>>
-
describeTo
public void describeTo(org.hamcrest.Description description)
-