Top Description Methods
org.assertj.core.data

public Interface TemporalOffset<T extends Temporal>

Known Direct Implementers
org.assertj.core.data.TemporalUnitOffset
Type Parameters
<T>
the type of the Temporal values to be checked against offset.
Imports
java.time.temporal.Temporal

Temporal offset.
Since
3.7.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

difference description.
getBeyondOffsetDifferenceDescription
(T
first temporal value which is being validated against second temporal value.
temporal1
,
T
second temporal value.
temporal2
)

Returns description of the difference between temporal values and expected offset details.

public boolean

Returns:

true if difference between temporal values is beyond offset.
isBeyondOffset
(T
first temporal value to be validated against second temporal value.
temporal1
,
T
second temporal value.
temporal2
)

Checks if difference between temporal values is beyond offset.

Method Detail

getBeyondOffsetDifferenceDescriptionback to summary
public 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:T

first temporal value which is being validated against second temporal value.

temporal2:T

second temporal value.

Returns:String

difference description.

isBeyondOffsetback to summary
public boolean isBeyondOffset(T temporal1, T temporal2)

Checks if difference between temporal values is beyond offset.

Parameters
temporal1:T

first temporal value to be validated against second temporal value.

temporal2:T

second temporal value.

Returns:boolean

true if difference between temporal values is beyond offset.