ZoneId (Java SE 26 & JDK 26)
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ZoneOffset
-
Field Summary
Fields
A map of zone overrides to enable the short time-zone names to be used.
-
Method Summary
booleanChecks if this time-zone ID is equal to another time-zone ID.
Obtains an instance of
ZoneIdfrom a temporal object.Gets the set of available zone IDs.
Gets the textual representation of the zone, such as 'British Time' or '+02:00'.
getId()Gets the unique time-zone ID.
getRules()Gets the time-zone rules for this ID allowing calculations to be performed.
inthashCode()A hash code for this time-zone ID.
Normalizes the time-zone ID, returning a
ZoneOffsetwhere possible.Obtains an instance of
ZoneIdfrom an ID ensuring that the ID is valid and available for use.Obtains an instance of
ZoneIdusing its ID using a map of aliases to supplement the standard zone IDs.Obtains an instance of
ZoneIdwrapping an offset.Gets the system default time-zone.
toString()Outputs this zone as a
String, using the ID.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitCreates and returns a copy of this object.
protected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Field Details
-
SHORT_IDS
-
-
Method Details
-
systemDefault
-
getAvailableZoneIds
-
of
-
of
-
ofOffset
-
from
-
getId
-
getDisplayName
-
getRules
-
normalized
-
equals
-
hashCode
-
toString
-