org.threeten.bp.zone

ZoneOffsetTransition

final class ZoneOffsetTransition extends Ordered[ZoneOffsetTransition] with Serializable

Creates an instance defining a transition between two offsets.

Annotations
@SerialVersionUID( 6946044323557704546L )
Linear Supertypes
Serializable, Ordered[ZoneOffsetTransition], Comparable[ZoneOffsetTransition], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZoneOffsetTransition
  2. Serializable
  3. Ordered
  4. Comparable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def <(that: ZoneOffsetTransition): Boolean

    Definition Classes
    Ordered
  5. def <=(that: ZoneOffsetTransition): Boolean

    Definition Classes
    Ordered
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def >(that: ZoneOffsetTransition): Boolean

    Definition Classes
    Ordered
  9. def >=(that: ZoneOffsetTransition): Boolean

    Definition Classes
    Ordered
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compare(transition: ZoneOffsetTransition): Int

    Compares this transition to another based on the transition instant.

    Compares this transition to another based on the transition instant.

    This compares the instants of each transition. The offsets are ignored, making this order inconsistent with equals.

    transition

    the transition to compare to, not null

    returns

    the comparator value, negative if less, positive if greater

    Definition Classes
    ZoneOffsetTransition → Ordered
  13. def compareTo(that: ZoneOffsetTransition): Int

    Definition Classes
    Ordered → Comparable
  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(other: Any): Boolean

    Checks if this object equals another.

    Checks if this object equals another.

    The entire state of the object is compared.

    other

    the other object to compare to, null returns false

    returns

    true if equal

    Definition Classes
    ZoneOffsetTransition → AnyRef → Any
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def getDateTimeAfter: LocalDateTime

    Gets the local transition date-time, as would be expressed with the 'after' offset.

    Gets the local transition date-time, as would be expressed with the 'after' offset.

    This is the first date-time after the discontinuity, when the new offset applies.

    The combination of the 'before' date-time and offset represents the same instant as the 'after' date-time and offset.

    returns

    the transition date-time expressed with the after offset, not null

  19. def getDateTimeBefore: LocalDateTime

    Gets the local transition date-time, as would be expressed with the 'before' offset.

    Gets the local transition date-time, as would be expressed with the 'before' offset.

    This is the date-time where the discontinuity begins expressed with the 'before' offset. At this instant, the 'after' offset is actually used, therefore the combination of this date-time and the 'before' offset will never occur.

    The combination of the 'before' date-time and offset represents the same instant as the 'after' date-time and offset.

    returns

    the transition date-time expressed with the before offset, not null

  20. def getDuration: Duration

    Gets the duration of the transition.

    Gets the duration of the transition.

    In most cases, the transition duration is one hour, however this is not always the case. The duration will be positive for a gap and negative for an overlap. Time-zones are second-based, so the nanosecond part of the duration will be zero.

    returns

    the duration of the transition, positive for gaps, negative for overlaps

  21. def getInstant: Instant

    Gets the transition instant.

    Gets the transition instant.

    This is the instant of the discontinuity, which is defined as the first instant that the 'after' offset applies.

    The methods #getInstant(), #getDateTimeBefore() and #getDateTimeAfter() all represent the same instant.

    returns

    the transition instant, not null

  22. def getOffsetAfter: ZoneOffset

    Gets the offset after the transition.

    Gets the offset after the transition.

    This is the offset in use on and after the instant of the transition.

    returns

    the offset after the transition, not null

  23. def getOffsetBefore: ZoneOffset

    Gets the offset before the transition.

    Gets the offset before the transition.

    This is the offset in use before the instant of the transition.

    returns

    the offset before the transition, not null

  24. def hashCode(): Int

    Returns a suitable hash code.

    Returns a suitable hash code.

    returns

    the hash code

    Definition Classes
    ZoneOffsetTransition → AnyRef → Any
  25. def isGap: Boolean

    Does this transition represent a gap in the local time-line.

    Does this transition represent a gap in the local time-line.

    Gaps occur where there are local date-times that simply do not not exist. An example would be when the offset changes from +01:00 to +02:00. This might be described as 'the clocks will move forward one hour tonight at 1am'.

    returns

    true if this transition is a gap, false if it is an overlap

  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. def isOverlap: Boolean

    Does this transition represent a gap in the local time-line.

    Does this transition represent a gap in the local time-line.

    Overlaps occur where there are local date-times that exist twice. An example would be when the offset changes from +02:00 to +01:00. This might be described as 'the clocks will move back one hour tonight at 2am'.

    returns

    true if this transition is an overlap, false if it is a gap

  28. def isValidOffset(offset: ZoneOffset): Boolean

    Checks if the specified offset is valid during this transition.

    Checks if the specified offset is valid during this transition.

    This checks to see if the given offset will be valid at some point in the transition. A gap will always return false. An overlap will return true if the offset is either the before or after offset.

    offset

    the offset to check, null returns false

    returns

    true if the offset is valid during the transition

  29. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toEpochSecond: Long

    Gets the transition instant as an epoch second.

    Gets the transition instant as an epoch second.

    returns

    the transition epoch second

  34. def toString(): String

    Returns a string describing this object.

    Returns a string describing this object.

    returns

    a string for debugging, not null

    Definition Classes
    ZoneOffsetTransition → AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Ordered[ZoneOffsetTransition]

Inherited from Comparable[ZoneOffsetTransition]

Inherited from AnyRef

Inherited from Any

Ungrouped