public class TemporalUnitLessThanOffset extends TemporalUnitOffset
TemporalUnitOffset with strict less than condition.value| Constructor and Description |
|---|
TemporalUnitLessThanOffset(long value,
TemporalUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
String |
getBeyondOffsetDifferenceDescription(Temporal temporal1,
Temporal temporal2)
Returns description of the difference between temporal values and expected offset details.
|
boolean |
isBeyondOffset(Temporal temporal1,
Temporal temporal2)
Checks if difference between temporal values is less then offset.
|
getDifference, getUnit, getValuepublic TemporalUnitLessThanOffset(long value,
TemporalUnit unit)
public boolean isBeyondOffset(Temporal temporal1, Temporal temporal2)
temporal1 - first temporal value to be validated against second temporal value.temporal2 - second temporal value.public String getBeyondOffsetDifferenceDescription(Temporal temporal1, Temporal temporal2)
getBeyondOffsetDifferenceDescription in interface TemporalOffset<Temporal>getBeyondOffsetDifferenceDescription in class TemporalUnitOffsettemporal1 - first temporal value which is being validated against second temporal value.temporal2 - second temporal value.Copyright © 2014–2019 AssertJ. All rights reserved.