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
-
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 TypeMethodDescriptionprotected 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.previous()
The offset before the this one.long
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
-
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.
-