Package org.elasticsearch.common
Class LocalTimeOffset.Lookup
java.lang.Object
org.elasticsearch.common.LocalTimeOffset.Lookup
- Enclosing class:
- LocalTimeOffset
public abstract static class LocalTimeOffset.Lookup
extends java.lang.Object
How to get instances of
LocalTimeOffset
.-
Constructor Summary
Constructors Constructor Description Lookup()
-
Method Summary
Modifier and Type Method Description abstract boolean
anyMoveBackToPreviousDay()
Do any of the transitions move back to the previous day?abstract LocalTimeOffset
fixedInRange(long minUtcMillis, long maxUtcMillis)
If the offset for a range is constant then return it, otherwise returnnull
.abstract LocalTimeOffset
lookup(long utcMillis)
Lookup the offset at the provided millis in utc.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Lookup
public Lookup()
-
-
Method Details
-
lookup
Lookup the offset at the provided millis in utc. -
fixedInRange
If the offset for a range is constant then return it, otherwise returnnull
. -
anyMoveBackToPreviousDay
public abstract boolean anyMoveBackToPreviousDay()Do any of the transitions move back to the previous day?Note: If an overlap occurs at, say, 1 am and jumps back to exactly midnight then it doesn't count because midnight is still counted as being in the "next" day.
-