Package org.fest.assertions.api
Class AbstractUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super A>>
java.lang.Object
org.fest.assertions.api.AbstractAssert<S,A>
org.fest.assertions.api.AbstractComparableAssert<S,A>
org.fest.assertions.api.AbstractUnevenComparableAssert<S,A>
- Type Parameters:
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.
- All Implemented Interfaces:
Assert<S,
,A> ComparableAssert<S,
,A> Descriptable<S>
,ExtensionPoints<S,
,A> UnevenComparableAssert<S,
A>
- Direct Known Subclasses:
BigDecimalAssert
public abstract class AbstractUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends Comparable<? super A>>
extends AbstractComparableAssert<S,A>
implements UnevenComparableAssert<S,A>
Base class for all implementations of
UnevenComparableAssert
.- Author:
- Alex Ruiz, Mikhail Mazursky
-
Field Summary
Fields inherited from class org.fest.assertions.api.AbstractAssert
actual, myself
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractUnevenComparableAssert
(A actual, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionisEqualByComparingTo
(A expected) Verifies that the actual value is equal to the given one by invoking
.Comparable.compareTo(Object)
isNotEqualByComparingTo
(A other) Verifies that the actual value is not equal to the given one by invoking
.Comparable.compareTo(Object)
Methods inherited from class org.fest.assertions.api.AbstractComparableAssert
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, usingComparator, usingDefaultComparator
Methods inherited from class org.fest.assertions.api.AbstractAssert
as, as, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, getWritableAssertionInfo, has, hashCode, hasSameClassAs, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, overridingErrorMessage
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.fest.assertions.core.ComparableAssert
isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
-
Constructor Details
-
AbstractUnevenComparableAssert
-
-
Method Details
-
isEqualByComparingTo
Verifies that the actual value is equal to the given one by invoking
.Comparable.compareTo(Object)
- Specified by:
isEqualByComparingTo
in interfaceUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,
A>, A extends Comparable<? super A>> - Parameters:
expected
- the given value to compare the actual value to.- Returns:
this
assertion object.
-
isNotEqualByComparingTo
Verifies that the actual value is not equal to the given one by invoking
.Comparable.compareTo(Object)
- Specified by:
isNotEqualByComparingTo
in interfaceUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,
A>, A extends Comparable<? super A>> - Parameters:
other
- the given value to compare the actual value to.- Returns:
this
assertion object.
-