Class/Object

org.threeten.bp.zone

ZoneOffsetTransition

Related Docs: object ZoneOffsetTransition | package zone

Permalink

final class ZoneOffsetTransition extends Ordered[ZoneOffsetTransition] with Serializable

Creates an instance defining a transition between two offsets.

Annotations
@SerialVersionUID()
Linear Supertypes
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
Visibility
  1. Public
  2. All

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

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

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: ZoneOffsetTransition): Boolean

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

    Permalink
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

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

    Permalink

    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
  11. def compareTo(other: ZoneOffsetTransition): Int

    Permalink
    Definition Classes
    ZoneOffsetTransition → Ordered → Comparable
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink

    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
  14. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. def getDateTimeAfter: LocalDateTime

    Permalink

    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

  17. def getDateTimeBefore: LocalDateTime

    Permalink

    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

  18. def getDuration: Duration

    Permalink

    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

  19. def getInstant: Instant

    Permalink

    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

  20. def getOffsetAfter: ZoneOffset

    Permalink

    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

  21. def getOffsetBefore: ZoneOffset

    Permalink

    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

  22. def hashCode(): Int

    Permalink

    Returns a suitable hash code.

    Returns a suitable hash code.

    returns

    the hash code

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

    Permalink

    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

  24. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  25. def isOverlap: Boolean

    Permalink

    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

  26. def isValidOffset(offset: ZoneOffset): Boolean

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  31. def toEpochSecond: Long

    Permalink

    Gets the transition instant as an epoch second.

    Gets the transition instant as an epoch second.

    returns

    the transition epoch second

  32. def toString(): String

    Permalink

    Returns a string describing this object.

    Returns a string describing this object.

    returns

    a string for debugging, not null

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Ordered[ZoneOffsetTransition]

Inherited from Comparable[ZoneOffsetTransition]

Inherited from AnyRef

Inherited from Any

Ungrouped