TemporalOffset<Temporal>public class TemporalUnitLessThanOffset extends TemporalUnitOffset
TemporalUnitOffset with strict less than condition.value| Constructor | Description |
|---|---|
TemporalUnitLessThanOffset(long value,
TemporalUnit unit) |
| Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDifference, 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. All rights reserved.