final class ZoneOffsetTransition extends Ordered[ZoneOffsetTransition] with Serializable
Creates an instance defining a transition between two offsets.
- Alphabetic
- By Inheritance
- ZoneOffsetTransition
- Serializable
- Ordered
- Comparable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<(that: ZoneOffsetTransition): Boolean
- Definition Classes
- Ordered
-
def
<=(that: ZoneOffsetTransition): Boolean
- Definition Classes
- Ordered
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(that: ZoneOffsetTransition): Boolean
- Definition Classes
- Ordered
-
def
>=(that: ZoneOffsetTransition): Boolean
- Definition Classes
- Ordered
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
def
compareTo(other: ZoneOffsetTransition): Int
- Definition Classes
- ZoneOffsetTransition → Ordered → Comparable
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
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
-
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
-
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
-
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
-
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
-
def
hashCode(): Int
Returns a suitable hash code.
Returns a suitable hash code.
- returns
the hash code
- Definition Classes
- ZoneOffsetTransition → AnyRef → Any
-
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
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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
-
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
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toEpochSecond: Long
Gets the transition instant as an epoch second.
Gets the transition instant as an epoch second.
- returns
the transition epoch second
-
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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()