|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeMatcher<T>
org.hamcrest.number.OrderingComparison<T>
public class OrderingComparison<T extends Comparable<T>>
Method Summary | ||
---|---|---|
static
|
comparesEqualTo(T value)
|
|
void |
describeMismatchSafely(T actual,
Description mismatchDescription)
Subclasses should override this. |
|
void |
describeTo(Description description)
Generates a description of the object. |
|
static
|
greaterThan(T value)
Is value > expected? |
|
static
|
greaterThanOrEqualTo(T value)
Is value >= expected? |
|
static
|
lessThan(T value)
Is value < expected? |
|
static
|
lessThanOrEqualTo(T value)
Is value <= expected? |
|
boolean |
matchesSafely(T actual)
Subclasses should implement this. |
Methods inherited from class org.hamcrest.TypeSafeMatcher |
---|
describeMismatch, matches |
Methods inherited from class org.hamcrest.BaseMatcher |
---|
_dont_implement_Matcher___instead_extend_BaseMatcher_, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean matchesSafely(T actual)
TypeSafeMatcher
matchesSafely
in class TypeSafeMatcher<T extends Comparable<T>>
public void describeMismatchSafely(T actual, Description mismatchDescription)
TypeSafeMatcher
describeMismatchSafely
in class TypeSafeMatcher<T extends Comparable<T>>
public void describeTo(Description description)
SelfDescribing
description
- The description to be built or appended to.public static <T extends Comparable<T>> Matcher<T> comparesEqualTo(T value)
public static <T extends Comparable<T>> Matcher<T> greaterThan(T value)
public static <T extends Comparable<T>> Matcher<T> greaterThanOrEqualTo(T value)
public static <T extends Comparable<T>> Matcher<T> lessThan(T value)
public static <T extends Comparable<T>> Matcher<T> lessThanOrEqualTo(T value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |