Class TimeWindow

  • All Implemented Interfaces:
    java.io.Serializable

    public final class TimeWindow
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • compareByStartTime

        public static java.util.Comparator<TimeWindow> compareByStartTime()
      • compareByEndTime

        public static java.util.Comparator<TimeWindow> compareByEndTime()
      • compareByStartAndEndTime

        public static java.util.Comparator<TimeWindow> compareByStartAndEndTime()
      • between

        public static TimeWindow between​(long startNanos,
                                         long endNanos)
      • after

        public static TimeWindow after​(long startNanos)
      • before

        public static TimeWindow before​(long endNanos)
      • between

        public static TimeWindow between​(java.time.Instant startTime,
                                         java.time.Instant endTime)
      • fromStrings

        public static TimeWindow fromStrings​(java.lang.String startTime,
                                             java.lang.String endTime)
      • getStartTimeNanos

        public long getStartTimeNanos()
      • getEndTimeNanos

        public long getEndTimeNanos()
      • contains

        public boolean contains​(java.time.Instant instant)
      • contains

        public boolean contains​(long time)
      • bounds

        public boolean bounds​(TimeWindow window)
      • intersects

        public boolean intersects​(TimeWindow window)
      • leftLimit

        public TimeWindow leftLimit​(java.time.Instant limit)
      • rightLimit

        public TimeWindow rightLimit​(java.time.Instant limit)
      • isEmpty

        public boolean isEmpty()
      • isFinite

        public boolean isFinite()
      • isInfinite

        public boolean isInfinite()
      • isLeftInfinite

        public boolean isLeftInfinite()
      • isRightInfinite

        public boolean isRightInfinite()
      • getStartTime

        public java.time.Instant getStartTime()
      • getEndTime

        public java.time.Instant getEndTime()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object