S
- the "self" type of this assertion class. Please read "Emulating
'self types' using Java Generics to simplify fluent API implementation" for more details.A
- the type of the "actual" value.public interface ComparableAssert<S extends ComparableAssert<S,A>,A extends Comparable<? super A>>
Comparable
s.Modifier and Type | Method and Description |
---|---|
S |
isGreaterThan(A other)
Verifies that the actual value is greater than the given one.
|
S |
isGreaterThanOrEqualTo(A other)
Verifies that the actual value is greater than or equal to the given one.
|
S |
isLessThan(A other)
Verifies that the actual value is less than the given one.
|
S |
isLessThanOrEqualTo(A other)
Verifies that the actual value is less than or equal to the given one.
|
S isLessThan(A other)
other
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is equal to or greater than the given one.S isLessThanOrEqualTo(A other)
other
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is greater than the given one.S isGreaterThan(A other)
other
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is equal to or less than the given one.S isGreaterThanOrEqualTo(A other)
other
- the given value to compare the actual value to.this
assertion object.AssertionError
- if the actual value is null
.AssertionError
- if the actual value is less than the given one.Copyright © 2013-2015 AssertJ. All Rights Reserved.