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