TemporalOffset<Temporal>public class TemporalUnitWithinOffset extends TemporalUnitOffset
TemporalUnitOffset with less than or equal condition.value| Constructor | Description |
|---|---|
TemporalUnitWithinOffset(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 or equal to offset.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDifference, getUnit, getValuepublic TemporalUnitWithinOffset(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.