public class CompareTo<T extends Comparable<T>>
extends org.hamcrest.TypeSafeMatcher<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CompareTo.Comparator<T extends Comparable> |
| Modifier | Constructor and Description |
|---|---|
protected |
CompareTo(T expected,
String comparatorDescription,
CompareTo.Comparator<T> comparator) |
| Modifier and Type | Method and Description |
|---|---|
protected CompareTo.Comparator<T> |
comparator() |
protected String |
comparatorDescription() |
void |
describeTo(org.hamcrest.Description description) |
protected T |
expected() |
static <T extends Comparable<T>> |
greaterThan(T expected) |
protected static <T extends Comparable<T>> |
greaterThanComparator() |
static <T extends Comparable<T>> |
greaterThanOrEqualTo(T expected) |
protected static <T extends Comparable<T>> |
greaterThanOrEqualToComparator() |
static <T extends Comparable<T>> |
isGreaterThan(T expected) |
static <T extends Comparable<T>> |
isGreaterThanOrEqualTo(T expected) |
static <T extends Comparable<T>> |
isLessThan(T expected) |
static <T extends Comparable<T>> |
isLessThanOrEqualTo(T expected) |
static <T extends Comparable<T>> |
lessThan(T expected) |
protected static <T extends Comparable<T>> |
lessThanComparator() |
static <T extends Comparable<T>> |
lessThanOrEqualTo(T expected) |
protected static <T extends Comparable<T>> |
lessThanOrEqualToComparator() |
protected boolean |
matchesSafely(T item) |
protected static Class<?> |
typeOf(Object expected) |
describeMismatch, describeMismatchSafely, matches@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> isGreaterThan(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> isGreaterThanOrEqualTo(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> isLessThan(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> isLessThanOrEqualTo(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> greaterThan(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> greaterThanOrEqualTo(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> lessThan(@Nonnull T expected)
@Nonnull public static <T extends Comparable<T>> org.hamcrest.Matcher<T> lessThanOrEqualTo(@Nonnull T expected)
@Nonnull protected static <T extends Comparable<T>> CompareTo.Comparator<T> greaterThanComparator()
@Nonnull protected static <T extends Comparable<T>> CompareTo.Comparator<T> greaterThanOrEqualToComparator()
@Nonnull protected static <T extends Comparable<T>> CompareTo.Comparator<T> lessThanComparator()
@Nonnull protected static <T extends Comparable<T>> CompareTo.Comparator<T> lessThanOrEqualToComparator()
protected boolean matchesSafely(T item)
matchesSafely in class org.hamcrest.TypeSafeMatcher<T extends Comparable<T>>public void describeTo(@Nonnull org.hamcrest.Description description)
@Nonnull protected CompareTo.Comparator<T> comparator()
Copyright © 2017 echocat. All rights reserved.