Package org.elasticsearch.common
Class LocalTimeOffset.Transition
java.lang.Object
org.elasticsearch.common.LocalTimeOffset
org.elasticsearch.common.LocalTimeOffset.Transition
- Direct Known Subclasses:
LocalTimeOffset.Gap
,LocalTimeOffset.Overlap
- Enclosing class:
- LocalTimeOffset
public abstract static class LocalTimeOffset.Transition extends LocalTimeOffset
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.common.LocalTimeOffset
LocalTimeOffset.Gap, LocalTimeOffset.Lookup, LocalTimeOffset.Overlap, LocalTimeOffset.Strategy, LocalTimeOffset.Transition
-
Method Summary
Modifier and Type Method Description protected boolean
containsUtcMillis(long utcMillis)
Does this offset contain the provided time?protected LocalTimeOffset
offsetContaining(long utcMillis)
Find the offset containing the provided time, first checking this offset, then its previous offset, the than one's previous offset, etc.LocalTimeOffset
previous()
The offset before the this one.long
startUtcMillis()
The time that this offset started in milliseconds since epoch.Methods inherited from class org.elasticsearch.common.LocalTimeOffset
anyMoveBackToPreviousDay, fixedOffset, localToUtc, localToUtcInThisOffset, lookup, toString, toString, utcToLocalTime
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Method Details
-
previous
The offset before the this one. -
containsUtcMillis
protected final boolean containsUtcMillis(long utcMillis)Description copied from class:LocalTimeOffset
Does this offset contain the provided time?- Specified by:
containsUtcMillis
in classLocalTimeOffset
-
offsetContaining
Description copied from class:LocalTimeOffset
Find the offset containing the provided time, first checking this offset, then its previous offset, the than one's previous offset, etc.- Specified by:
offsetContaining
in classLocalTimeOffset
-
startUtcMillis
public long startUtcMillis()The time that this offset started in milliseconds since epoch.
-