Package org.assertj.core.data
Interface TemporalOffset<T extends Temporal>
-
- Type Parameters:
T- the type of theTemporalvalues to be checked against offset.
- All Known Implementing Classes:
TemporalUnitLessThanOffset,TemporalUnitOffset,TemporalUnitWithinOffset
public interface TemporalOffset<T extends Temporal>Temporaloffset.- Since:
- 3.7.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBeyondOffsetDifferenceDescription(T temporal1, T temporal2)Returns description of the difference between temporal values and expected offset details.booleanisBeyondOffset(T temporal1, T temporal2)Checks if difference between temporal values is beyond offset.
-
-
-
Method Detail
-
isBeyondOffset
boolean isBeyondOffset(T temporal1, T temporal2)
Checks if difference between temporal values is beyond offset.- Parameters:
temporal1- first temporal value to be validated against second temporal value.temporal2- second temporal value.- Returns:
- true if difference between temporal values is beyond offset.
-
getBeyondOffsetDifferenceDescription
String getBeyondOffsetDifferenceDescription(T temporal1, T temporal2)
Returns description of the difference between temporal values and expected offset details. Is designed for the case when difference is beyond offset.- Parameters:
temporal1- first temporal value which is being validated against second temporal value.temporal2- second temporal value.- Returns:
- difference description.
-
-