src/java.base/share/classes/java/time/ZoneId.java
changeset 49433 b6671a111395
parent 47216 71c04702a3d5
child 52078 4a63197816ce
equal deleted inserted replaced
49432:f76e1ac74f28 49433:b6671a111395
     1 /*
     1 /*
     2  * Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   160  * However, any call to {@code getRules} will fail with {@code ZoneRulesException}.
   160  * However, any call to {@code getRules} will fail with {@code ZoneRulesException}.
   161  * This approach is designed to allow a {@link ZonedDateTime} to be loaded and
   161  * This approach is designed to allow a {@link ZonedDateTime} to be loaded and
   162  * queried, but not modified, on a Java Runtime with incomplete time-zone information.
   162  * queried, but not modified, on a Java Runtime with incomplete time-zone information.
   163  *
   163  *
   164  * <p>
   164  * <p>
   165  * This is a <a href="{@docRoot}/java/lang/doc-files/ValueBased.html">value-based</a>
   165  * This is a <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>
   166  * class; use of identity-sensitive operations (including reference equality
   166  * class; use of identity-sensitive operations (including reference equality
   167  * ({@code ==}), identity hash code, or synchronization) on instances of
   167  * ({@code ==}), identity hash code, or synchronization) on instances of
   168  * {@code ZoneId} may have unpredictable results and should be avoided.
   168  * {@code ZoneId} may have unpredictable results and should be avoided.
   169  * The {@code equals} method should be used for comparisons.
   169  * The {@code equals} method should be used for comparisons.
   170  *
   170  *