Class LocalTimeOffset.Lookup

org.elasticsearch.common.LocalTimeOffset.Lookup
Enclosing class:
LocalTimeOffset

public abstract static class LocalTimeOffset.Lookup extends
How to get instances of LocalTimeOffset.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract boolean
    Do any of the transitions move back to the previous day?
    fixedInRange​(long minUtcMillis, long maxUtcMillis)
    If the offset for a range is constant then return it, otherwise return null.
    lookup​(long utcMillis)
    Lookup the offset at the provided millis in utc.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • Lookup

      public Lookup()
  • Method Details

    • lookup

      public abstract LocalTimeOffset lookup(long utcMillis)
      Lookup the offset at the provided millis in utc.
    • fixedInRange

      public abstract LocalTimeOffset fixedInRange(long minUtcMillis, long maxUtcMillis)
      If the offset for a range is constant then return it, otherwise return null.
    • 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.