Class AbstractComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>>
- java.lang.Object
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractObjectAssert<T,U>
-
- io.github.henryssondaniel.teacup.core.assertion.AbstractComparableAssert<T,U>
-
- Type Parameters:
T
- the comparable typeU
- the generic comparable assert type
- All Implemented Interfaces:
GenericComparableAssert<T,U>
,GenericObjectAssert<T,U>
- Direct Known Subclasses:
AbstractIntegerAssert
,AbstractLongAssert
public abstract class AbstractComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>> extends AbstractObjectAssert<T,U> implements GenericComparableAssert<T,U>
Abstract comparable assert.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description AbstractComparableAssert()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description U
isGreaterThan(T value)
Verifies that the comparable is greater than the value.U
isGreaterThanOrEqualTo(T value)
Verifies that the comparable is greater than, or equal to, the value.U
isLessThan(T value)
Verifies that the comparable is less than the value.U
isLessThanOrEqualTo(T value)
Verifies that the comparable is less than, or equal to, the value.-
Methods inherited from class io.github.henryssondaniel.teacup.core.assertion.AbstractObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert
doesNotHaveSameClassAs, hasSameClassAs, isEqualTo, isNotEqualTo, isNotSameAs, isSameAs, verify
-
-
-
-
Method Detail
-
isGreaterThan
public U isGreaterThan(T value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is greater than the value.- Specified by:
isGreaterThan
in interfaceGenericComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isGreaterThanOrEqualTo
public U isGreaterThanOrEqualTo(T value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is greater than, or equal to, the value.- Specified by:
isGreaterThanOrEqualTo
in interfaceGenericComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isLessThan
public U isLessThan(T value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is less than the value.- Specified by:
isLessThan
in interfaceGenericComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
isLessThanOrEqualTo
public U isLessThanOrEqualTo(T value)
Description copied from interface:GenericComparableAssert
Verifies that the comparable is less than, or equal to, the value.- Specified by:
isLessThanOrEqualTo
in interfaceGenericComparableAssert<T extends java.lang.Comparable<? super T>,U extends GenericComparableAssert<T,U>>
- Parameters:
value
- the value- Returns:
- the comparable assert
-
-