Package org.fest.assertions.api
Class AbstractUnevenComparableAssert<S extends AbstractUnevenComparableAssert<S,A>,A extends java.lang.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 java.lang.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
Constructors Modifier Constructor Description protected
AbstractUnevenComparableAssert(A actual, java.lang.Class<?> selfType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S
isEqualByComparingTo(A expected)
Verifies that the actual value is equal to the given one by invoking
.Comparable.compareTo(Object)
S
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 Detail
-
AbstractUnevenComparableAssert
protected AbstractUnevenComparableAssert(A actual, java.lang.Class<?> selfType)
-
-
Method Detail
-
isEqualByComparingTo
public S isEqualByComparingTo(A expected)
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 java.lang.Comparable<? super A>>
- Parameters:
expected
- the given value to compare the actual value to.- Returns:
this
assertion object.
-
isNotEqualByComparingTo
public S isNotEqualByComparingTo(A other)
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 java.lang.Comparable<? super A>>
- Parameters:
other
- the given value to compare the actual value to.- Returns:
this
assertion object.
-
-