Package org.assertj.core.data
Interface TemporalOffset<T extends Temporal>
- Type Parameters:
T
- the type of theTemporal
values to be checked against offset.
- All Known Implementing Classes:
TemporalUnitLessThanOffset
,TemporalUnitOffset
,TemporalUnitWithinOffset
public interface TemporalOffset<T extends Temporal>
Temporal
offset.- Since:
- 3.7.0
-
Method Summary
Modifier and TypeMethodDescriptiongetBeyondOffsetDifferenceDescription
(T temporal1, T temporal2) Returns description of the difference between temporal values and expected offset details.boolean
isBeyondOffset
(T temporal1, T temporal2) Checks if difference between temporal values is beyond offset.
-
Method Details
-
isBeyondOffset
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
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.
-