• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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.
4  *
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
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 /*
27  * This file is available under and governed by the GNU General Public
28  * License version 2 only, as published by the Free Software Foundation.
29  * However, the following notice accompanied the original version of this
30  * file:
31  *
32  * Copyright (c) 2007-2012, Stephen Colebourne & Michael Nascimento Santos
33  *
34  * All rights reserved.
35  *
36  * Redistribution and use in source and binary forms, with or without
37  * modification, are permitted provided that the following conditions are met:
38  *
39  *  * Redistributions of source code must retain the above copyright notice,
40  *    this list of conditions and the following disclaimer.
41  *
42  *  * Redistributions in binary form must reproduce the above copyright notice,
43  *    this list of conditions and the following disclaimer in the documentation
44  *    and/or other materials provided with the distribution.
45  *
46  *  * Neither the name of JSR-310 nor the names of its contributors
47  *    may be used to endorse or promote products derived from this software
48  *    without specific prior written permission.
49  *
50  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
51  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
52  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
53  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
54  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
55  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
56  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
57  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
58  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
59  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
60  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
61  */
62 
63 package java.time;
64 
65 import libcore.api.Hide;
66 
67 @SuppressWarnings({"unchecked", "deprecation", "all"})
68 public final class OffsetTime implements java.time.temporal.Temporal, java.time.temporal.TemporalAdjuster, java.lang.Comparable<java.time.OffsetTime>, java.io.Serializable {
69 
OffsetTime()70 private OffsetTime() { throw new RuntimeException("Stub!"); }
71 
now()72 public static java.time.OffsetTime now() { throw new RuntimeException("Stub!"); }
73 
now(java.time.ZoneId zone)74 public static java.time.OffsetTime now(java.time.ZoneId zone) { throw new RuntimeException("Stub!"); }
75 
now(java.time.Clock clock)76 public static java.time.OffsetTime now(java.time.Clock clock) { throw new RuntimeException("Stub!"); }
77 
of(java.time.LocalTime time, java.time.ZoneOffset offset)78 public static java.time.OffsetTime of(java.time.LocalTime time, java.time.ZoneOffset offset) { throw new RuntimeException("Stub!"); }
79 
of(int hour, int minute, int second, int nanoOfSecond, java.time.ZoneOffset offset)80 public static java.time.OffsetTime of(int hour, int minute, int second, int nanoOfSecond, java.time.ZoneOffset offset) { throw new RuntimeException("Stub!"); }
81 
ofInstant(java.time.Instant instant, java.time.ZoneId zone)82 public static java.time.OffsetTime ofInstant(java.time.Instant instant, java.time.ZoneId zone) { throw new RuntimeException("Stub!"); }
83 
from(java.time.temporal.TemporalAccessor temporal)84 public static java.time.OffsetTime from(java.time.temporal.TemporalAccessor temporal) { throw new RuntimeException("Stub!"); }
85 
parse(java.lang.CharSequence text)86 public static java.time.OffsetTime parse(java.lang.CharSequence text) { throw new RuntimeException("Stub!"); }
87 
parse(java.lang.CharSequence text, java.time.format.DateTimeFormatter formatter)88 public static java.time.OffsetTime parse(java.lang.CharSequence text, java.time.format.DateTimeFormatter formatter) { throw new RuntimeException("Stub!"); }
89 
isSupported(java.time.temporal.TemporalField field)90 public boolean isSupported(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
91 
isSupported(java.time.temporal.TemporalUnit unit)92 public boolean isSupported(java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
93 
range(java.time.temporal.TemporalField field)94 public java.time.temporal.ValueRange range(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
95 
get(java.time.temporal.TemporalField field)96 public int get(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
97 
getLong(java.time.temporal.TemporalField field)98 public long getLong(java.time.temporal.TemporalField field) { throw new RuntimeException("Stub!"); }
99 
getOffset()100 public java.time.ZoneOffset getOffset() { throw new RuntimeException("Stub!"); }
101 
withOffsetSameLocal(java.time.ZoneOffset offset)102 public java.time.OffsetTime withOffsetSameLocal(java.time.ZoneOffset offset) { throw new RuntimeException("Stub!"); }
103 
withOffsetSameInstant(java.time.ZoneOffset offset)104 public java.time.OffsetTime withOffsetSameInstant(java.time.ZoneOffset offset) { throw new RuntimeException("Stub!"); }
105 
toLocalTime()106 public java.time.LocalTime toLocalTime() { throw new RuntimeException("Stub!"); }
107 
getHour()108 public int getHour() { throw new RuntimeException("Stub!"); }
109 
getMinute()110 public int getMinute() { throw new RuntimeException("Stub!"); }
111 
getSecond()112 public int getSecond() { throw new RuntimeException("Stub!"); }
113 
getNano()114 public int getNano() { throw new RuntimeException("Stub!"); }
115 
with(java.time.temporal.TemporalAdjuster adjuster)116 public java.time.OffsetTime with(java.time.temporal.TemporalAdjuster adjuster) { throw new RuntimeException("Stub!"); }
117 
with(java.time.temporal.TemporalField field, long newValue)118 public java.time.OffsetTime with(java.time.temporal.TemporalField field, long newValue) { throw new RuntimeException("Stub!"); }
119 
withHour(int hour)120 public java.time.OffsetTime withHour(int hour) { throw new RuntimeException("Stub!"); }
121 
withMinute(int minute)122 public java.time.OffsetTime withMinute(int minute) { throw new RuntimeException("Stub!"); }
123 
withSecond(int second)124 public java.time.OffsetTime withSecond(int second) { throw new RuntimeException("Stub!"); }
125 
withNano(int nanoOfSecond)126 public java.time.OffsetTime withNano(int nanoOfSecond) { throw new RuntimeException("Stub!"); }
127 
truncatedTo(java.time.temporal.TemporalUnit unit)128 public java.time.OffsetTime truncatedTo(java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
129 
plus(java.time.temporal.TemporalAmount amountToAdd)130 public java.time.OffsetTime plus(java.time.temporal.TemporalAmount amountToAdd) { throw new RuntimeException("Stub!"); }
131 
plus(long amountToAdd, java.time.temporal.TemporalUnit unit)132 public java.time.OffsetTime plus(long amountToAdd, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
133 
plusHours(long hours)134 public java.time.OffsetTime plusHours(long hours) { throw new RuntimeException("Stub!"); }
135 
plusMinutes(long minutes)136 public java.time.OffsetTime plusMinutes(long minutes) { throw new RuntimeException("Stub!"); }
137 
plusSeconds(long seconds)138 public java.time.OffsetTime plusSeconds(long seconds) { throw new RuntimeException("Stub!"); }
139 
plusNanos(long nanos)140 public java.time.OffsetTime plusNanos(long nanos) { throw new RuntimeException("Stub!"); }
141 
minus(java.time.temporal.TemporalAmount amountToSubtract)142 public java.time.OffsetTime minus(java.time.temporal.TemporalAmount amountToSubtract) { throw new RuntimeException("Stub!"); }
143 
minus(long amountToSubtract, java.time.temporal.TemporalUnit unit)144 public java.time.OffsetTime minus(long amountToSubtract, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
145 
minusHours(long hours)146 public java.time.OffsetTime minusHours(long hours) { throw new RuntimeException("Stub!"); }
147 
minusMinutes(long minutes)148 public java.time.OffsetTime minusMinutes(long minutes) { throw new RuntimeException("Stub!"); }
149 
minusSeconds(long seconds)150 public java.time.OffsetTime minusSeconds(long seconds) { throw new RuntimeException("Stub!"); }
151 
minusNanos(long nanos)152 public java.time.OffsetTime minusNanos(long nanos) { throw new RuntimeException("Stub!"); }
153 
query(java.time.temporal.TemporalQuery<R> query)154 public <R> R query(java.time.temporal.TemporalQuery<R> query) { throw new RuntimeException("Stub!"); }
155 
adjustInto(java.time.temporal.Temporal temporal)156 public java.time.temporal.Temporal adjustInto(java.time.temporal.Temporal temporal) { throw new RuntimeException("Stub!"); }
157 
until(java.time.temporal.Temporal endExclusive, java.time.temporal.TemporalUnit unit)158 public long until(java.time.temporal.Temporal endExclusive, java.time.temporal.TemporalUnit unit) { throw new RuntimeException("Stub!"); }
159 
format(java.time.format.DateTimeFormatter formatter)160 public java.lang.String format(java.time.format.DateTimeFormatter formatter) { throw new RuntimeException("Stub!"); }
161 
atDate(java.time.LocalDate date)162 public java.time.OffsetDateTime atDate(java.time.LocalDate date) { throw new RuntimeException("Stub!"); }
163 
164 @Hide
toEpochSecond(java.time.LocalDate date)165 public long toEpochSecond(java.time.LocalDate date) { throw new RuntimeException("Stub!"); }
166 
compareTo(java.time.OffsetTime other)167 public int compareTo(java.time.OffsetTime other) { throw new RuntimeException("Stub!"); }
168 
isAfter(java.time.OffsetTime other)169 public boolean isAfter(java.time.OffsetTime other) { throw new RuntimeException("Stub!"); }
170 
isBefore(java.time.OffsetTime other)171 public boolean isBefore(java.time.OffsetTime other) { throw new RuntimeException("Stub!"); }
172 
isEqual(java.time.OffsetTime other)173 public boolean isEqual(java.time.OffsetTime other) { throw new RuntimeException("Stub!"); }
174 
equals(java.lang.Object obj)175 public boolean equals(java.lang.Object obj) { throw new RuntimeException("Stub!"); }
176 
hashCode()177 public int hashCode() { throw new RuntimeException("Stub!"); }
178 
toString()179 public java.lang.String toString() { throw new RuntimeException("Stub!"); }
180 
181 public static final java.time.OffsetTime MAX;
182 static { MAX = null; }
183 
184 public static final java.time.OffsetTime MIN;
185 static { MIN = null; }
186 }
187 
188