< prev index next >

src/java.base/share/classes/java/time/LocalTime.java

Print this page

 106  * It cannot represent an instant on the time-line without additional information
 107  * such as an offset or time-zone.
 108  * <p>
 109  * The ISO-8601 calendar system is the modern civil calendar system used today
 110  * in most of the world. This API assumes that all calendar systems use the same
 111  * representation, this class, for time-of-day.
 112  * <p>
 113  * This is a <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>
 114  * class; programmers should treat instances that are
 115  * {@linkplain #equals(Object) equal} as interchangeable and should not
 116  * use instances for synchronization, or unpredictable behavior may
 117  * occur. For example, in a future release, synchronization may fail.
 118  * The {@code equals} method should be used for comparisons.
 119  *
 120  * @implSpec
 121  * This class is immutable and thread-safe.
 122  *
 123  * @since 1.8
 124  */
 125 @jdk.internal.ValueBased

 126 public final class LocalTime
 127         implements Temporal, TemporalAdjuster, Comparable<LocalTime>, Serializable {
 128 
 129     /**
 130      * The minimum supported {@code LocalTime}, '00:00'.
 131      * This is the time of midnight at the start of the day.
 132      */
 133     public static final LocalTime MIN;
 134     /**
 135      * The maximum supported {@code LocalTime}, '23:59:59.999999999'.
 136      * This is the time just before midnight at the end of the day.
 137      */
 138     public static final LocalTime MAX;
 139     /**
 140      * The time of midnight at the start of the day, '00:00'.
 141      */
 142     public static final LocalTime MIDNIGHT;
 143     /**
 144      * The time of noon in the middle of the day, '12:00'.
 145      */

 106  * It cannot represent an instant on the time-line without additional information
 107  * such as an offset or time-zone.
 108  * <p>
 109  * The ISO-8601 calendar system is the modern civil calendar system used today
 110  * in most of the world. This API assumes that all calendar systems use the same
 111  * representation, this class, for time-of-day.
 112  * <p>
 113  * This is a <a href="{@docRoot}/java.base/java/lang/doc-files/ValueBased.html">value-based</a>
 114  * class; programmers should treat instances that are
 115  * {@linkplain #equals(Object) equal} as interchangeable and should not
 116  * use instances for synchronization, or unpredictable behavior may
 117  * occur. For example, in a future release, synchronization may fail.
 118  * The {@code equals} method should be used for comparisons.
 119  *
 120  * @implSpec
 121  * This class is immutable and thread-safe.
 122  *
 123  * @since 1.8
 124  */
 125 @jdk.internal.ValueBased
 126 @jdk.internal.MigratedValueClass
 127 public final class LocalTime
 128         implements Temporal, TemporalAdjuster, Comparable<LocalTime>, Serializable {
 129 
 130     /**
 131      * The minimum supported {@code LocalTime}, '00:00'.
 132      * This is the time of midnight at the start of the day.
 133      */
 134     public static final LocalTime MIN;
 135     /**
 136      * The maximum supported {@code LocalTime}, '23:59:59.999999999'.
 137      * This is the time just before midnight at the end of the day.
 138      */
 139     public static final LocalTime MAX;
 140     /**
 141      * The time of midnight at the start of the day, '00:00'.
 142      */
 143     public static final LocalTime MIDNIGHT;
 144     /**
 145      * The time of noon in the middle of the day, '12:00'.
 146      */
< prev index next >