java-api 17.25.0__py2-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- java/__init__.py +0 -0
- java/awt/__init__.py +265 -0
- java/awt/event/__init__.py +184 -0
- java/awt/geom/__init__.py +116 -0
- java/awt/image/__init__.py +14 -0
- java/awt/print/__init__.py +93 -0
- java/beans/__init__.py +38 -0
- java/io/__init__.py +442 -0
- java/lang/__init__.py +868 -0
- java/lang/reflect/__init__.py +9 -0
- java/math/__init__.py +93 -0
- java/net/__init__.py +504 -0
- java/net/http/__init__.py +15 -0
- java/nio/__init__.py +667 -0
- java/nio/channels/__init__.py +352 -0
- java/nio/charset/__init__.py +146 -0
- java/nio/file/__init__.py +728 -0
- java/nio/file/attribute/__init__.py +141 -0
- java/org/__init__.py +0 -0
- java/org/jdesktop/__init__.py +0 -0
- java/org/jdesktop/core/__init__.py +0 -0
- java/org/jdesktop/core/animation/__init__.py +0 -0
- java/org/jdesktop/core/animation/timing/__init__.py +17 -0
- java/security/__init__.py +27 -0
- java/text/__init__.py +543 -0
- java/time/__init__.py +575 -0
- java/time/chrono/__init__.py +319 -0
- java/time/format/__init__.py +72 -0
- java/time/temporal/__init__.py +353 -0
- java/util/__init__.py +1479 -0
- java/util/concurrent/__init__.py +147 -0
- java/util/function/__init__.py +131 -0
- java/util/regex/__init__.py +197 -0
- java/util/stream/__init__.py +128 -0
- java_api-17.25.0.dist-info/LICENSE +21 -0
- java_api-17.25.0.dist-info/METADATA +150 -0
- java_api-17.25.0.dist-info/RECORD +46 -0
- java_api-17.25.0.dist-info/WHEEL +5 -0
- java_api-17.25.0.dist-info/top_level.txt +2 -0
- javax/__init__.py +0 -0
- javax/security/__init__.py +0 -0
- javax/security/auth/__init__.py +14 -0
- javax/swing/__init__.py +483 -0
- javax/swing/event/__init__.py +43 -0
- javax/swing/plaf/__init__.py +28 -0
- javax/swing/text/__init__.py +19 -0
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
__all__ = [
|
|
2
|
+
"ChronoField",
|
|
3
|
+
"ChronoUnit",
|
|
4
|
+
"Temporal",
|
|
5
|
+
"TemporalAccessor",
|
|
6
|
+
"TemporalAdjuster",
|
|
7
|
+
"TemporalAmount",
|
|
8
|
+
"TemporalField",
|
|
9
|
+
"TemporalQuery",
|
|
10
|
+
"TemporalUnit",
|
|
11
|
+
"ValueRange",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
|
|
15
|
+
|
|
16
|
+
from java.lang import Enum, Object
|
|
17
|
+
from java.time.format import ResolverStyle
|
|
18
|
+
from java.util import Locale
|
|
19
|
+
|
|
20
|
+
if TYPE_CHECKING:
|
|
21
|
+
from java.time import Duration
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class TemporalAccessor(object):
|
|
25
|
+
def get(self, field):
|
|
26
|
+
# type: (TemporalField) -> int
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def getLong(self, field):
|
|
30
|
+
# type: (TemporalField) -> long
|
|
31
|
+
pass
|
|
32
|
+
|
|
33
|
+
def isSupported(self, field):
|
|
34
|
+
# type: (TemporalField) -> bool
|
|
35
|
+
return True
|
|
36
|
+
|
|
37
|
+
def query(self, query):
|
|
38
|
+
# type: (TemporalQuery) -> Any
|
|
39
|
+
pass
|
|
40
|
+
|
|
41
|
+
def range(self, field):
|
|
42
|
+
# type: (TemporalField) -> ValueRange
|
|
43
|
+
pass
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class TemporalAdjuster(object):
|
|
47
|
+
def adjustInto(self, temporal):
|
|
48
|
+
# type: (Temporal) -> Temporal
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class TemporalAmount(object):
|
|
53
|
+
def addTo(self, temporal):
|
|
54
|
+
# type: (Temporal) -> Temporal
|
|
55
|
+
raise NotImplementedError
|
|
56
|
+
|
|
57
|
+
def get(self, unit):
|
|
58
|
+
# type: (TemporalUnit) -> long
|
|
59
|
+
raise NotImplementedError
|
|
60
|
+
|
|
61
|
+
def getUnits(self):
|
|
62
|
+
# type: () -> List[TemporalUnit]
|
|
63
|
+
raise NotImplementedError
|
|
64
|
+
|
|
65
|
+
def subtractFrom(self, temporal):
|
|
66
|
+
# type: (Temporal) -> Temporal
|
|
67
|
+
raise NotImplementedError
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
class TemporalField(object):
|
|
71
|
+
def adjustInto(self, temporal, newValue):
|
|
72
|
+
# type: (Any, long) -> Temporal
|
|
73
|
+
raise NotImplementedError
|
|
74
|
+
|
|
75
|
+
def getBaseUnit(self):
|
|
76
|
+
# type: () -> TemporalUnit
|
|
77
|
+
raise NotImplementedError
|
|
78
|
+
|
|
79
|
+
def getDisplayName(self, locale):
|
|
80
|
+
# type: (Locale) -> Union[str, unicode]
|
|
81
|
+
pass
|
|
82
|
+
|
|
83
|
+
def getFrom(self, temporal):
|
|
84
|
+
# type: (TemporalAccessor) -> long
|
|
85
|
+
raise NotImplementedError
|
|
86
|
+
|
|
87
|
+
def getRangeUnit(self):
|
|
88
|
+
# type: () -> TemporalUnit
|
|
89
|
+
raise NotImplementedError
|
|
90
|
+
|
|
91
|
+
def isDateBased(self):
|
|
92
|
+
# type: () -> bool
|
|
93
|
+
raise NotImplementedError
|
|
94
|
+
|
|
95
|
+
def isSupportedBy(self, temporal):
|
|
96
|
+
# type: (TemporalAccessor) -> bool
|
|
97
|
+
raise NotImplementedError
|
|
98
|
+
|
|
99
|
+
def isTimeBased(self):
|
|
100
|
+
# type: () -> bool
|
|
101
|
+
raise NotImplementedError
|
|
102
|
+
|
|
103
|
+
def range(self):
|
|
104
|
+
# type: () -> ValueRange
|
|
105
|
+
raise NotImplementedError
|
|
106
|
+
|
|
107
|
+
def rangeRefinedBy(self, temporal):
|
|
108
|
+
# type: (TemporalAccessor) -> ValueRange
|
|
109
|
+
raise NotImplementedError
|
|
110
|
+
|
|
111
|
+
def resolve(
|
|
112
|
+
self,
|
|
113
|
+
fieldValues, # type: Dict[TemporalField, long]
|
|
114
|
+
partialTemporal, # type: TemporalAccessor
|
|
115
|
+
resolverStyle, # type: ResolverStyle
|
|
116
|
+
):
|
|
117
|
+
# type: (...) -> TemporalAccessor
|
|
118
|
+
pass
|
|
119
|
+
|
|
120
|
+
def toString(self):
|
|
121
|
+
# type: () -> Union[str, unicode]
|
|
122
|
+
raise NotImplementedError
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class TemporalQuery(object):
|
|
126
|
+
def queryFrom(self, temporal):
|
|
127
|
+
# type: (TemporalAccessor) -> Any
|
|
128
|
+
raise NotImplementedError
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class TemporalUnit(object):
|
|
132
|
+
def addTo(self, temporal, amount):
|
|
133
|
+
# type: (Temporal, long) -> Temporal
|
|
134
|
+
raise NotImplementedError
|
|
135
|
+
|
|
136
|
+
def between(self, temporal1Inclusive, temporal2Exclusive):
|
|
137
|
+
# type: (Temporal, Temporal) -> Temporal
|
|
138
|
+
raise NotImplementedError
|
|
139
|
+
|
|
140
|
+
def isSupportedBy(self, temporal):
|
|
141
|
+
# type: (Temporal) -> bool
|
|
142
|
+
return True
|
|
143
|
+
|
|
144
|
+
def getDuration(self):
|
|
145
|
+
# type: () -> Duration
|
|
146
|
+
raise NotImplementedError
|
|
147
|
+
|
|
148
|
+
def isDateBased(self):
|
|
149
|
+
# type: () -> bool
|
|
150
|
+
raise NotImplementedError
|
|
151
|
+
|
|
152
|
+
def isDurationEstimated(self):
|
|
153
|
+
# type: () -> bool
|
|
154
|
+
raise NotImplementedError
|
|
155
|
+
|
|
156
|
+
def isTimeBased(self):
|
|
157
|
+
# type: () -> bool
|
|
158
|
+
raise NotImplementedError
|
|
159
|
+
|
|
160
|
+
def toString(self):
|
|
161
|
+
# type: () -> Union[str, unicode]
|
|
162
|
+
raise NotImplementedError
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class Temporal(TemporalAccessor):
|
|
166
|
+
def minus(self, amount, unit=None):
|
|
167
|
+
# type: (long, Optional[TemporalUnit]) -> Temporal
|
|
168
|
+
pass
|
|
169
|
+
|
|
170
|
+
def plus(self, amount, unit=None):
|
|
171
|
+
# type: (long, Optional[TemporalUnit]) -> Temporal
|
|
172
|
+
pass
|
|
173
|
+
|
|
174
|
+
def until(self, endExclusive, unit):
|
|
175
|
+
# type: (Temporal, TemporalUnit) -> long
|
|
176
|
+
raise NotImplementedError
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class ChronoField(Enum, TemporalField):
|
|
180
|
+
ALIGNED_DAY_OF_WEEK_IN_MONTH = None # type: ChronoField
|
|
181
|
+
ALIGNED_DAY_OF_WEEK_IN_YEAR = None # type: ChronoField
|
|
182
|
+
ALIGNED_WEEK_OF_MONTH = None # type: ChronoField
|
|
183
|
+
ALIGNED_WEEK_OF_YEAR = None # type: ChronoField
|
|
184
|
+
AMPM_OF_DAY = None # type: ChronoField
|
|
185
|
+
CLOCK_HOUR_OF_AMPM = None # type: ChronoField
|
|
186
|
+
CLOCK_HOUR_OF_DAY = None # type: ChronoField
|
|
187
|
+
DAY_OF_MONTH = None # type: ChronoField
|
|
188
|
+
DAY_OF_WEEK = None # type: ChronoField
|
|
189
|
+
DAY_OF_YEAR = None # type: ChronoField
|
|
190
|
+
EPOCH_DAY = None # type: ChronoField
|
|
191
|
+
ERA = None # type: ChronoField
|
|
192
|
+
HOUR_OF_AMPM = None # type: ChronoField
|
|
193
|
+
HOUR_OF_DAY = None # type: ChronoField
|
|
194
|
+
INSTANT_SECONDS = None # type: ChronoField
|
|
195
|
+
MICRO_OF_DAY = None # type: ChronoField
|
|
196
|
+
MICRO_OF_SECOND = None # type: ChronoField
|
|
197
|
+
MILLI_OF_DAY = None # type: ChronoField
|
|
198
|
+
MILLI_OF_SECOND = None # type: ChronoField
|
|
199
|
+
MINUTE_OF_DAY = None # type: ChronoField
|
|
200
|
+
MINUTE_OF_HOUR = None # type: ChronoField
|
|
201
|
+
MONTH_OF_YEAR = None # type: ChronoField
|
|
202
|
+
NANO_OF_DAY = None # type: ChronoField
|
|
203
|
+
NANO_OF_SECOND = None # type: ChronoField
|
|
204
|
+
OFFSET_SECONDS = None # type: ChronoField
|
|
205
|
+
PROLEPTIC_MONTH = None # type: ChronoField
|
|
206
|
+
SECOND_OF_DAY = None # type: ChronoField
|
|
207
|
+
SECOND_OF_MINUTE = None # type: ChronoField
|
|
208
|
+
YEAR = None # type: ChronoField
|
|
209
|
+
YEAR_OF_ERA = None # type: ChronoField
|
|
210
|
+
|
|
211
|
+
def adjustInto(self, temporal, newValue):
|
|
212
|
+
# type: (Temporal, long) -> Temporal
|
|
213
|
+
pass
|
|
214
|
+
|
|
215
|
+
def checkValidIntValue(self, value):
|
|
216
|
+
# type: (long) -> int
|
|
217
|
+
pass
|
|
218
|
+
|
|
219
|
+
def checkValidValue(self, value):
|
|
220
|
+
# type: (long) -> long
|
|
221
|
+
pass
|
|
222
|
+
|
|
223
|
+
def getBaseUnit(self):
|
|
224
|
+
# type: () -> TemporalUnit
|
|
225
|
+
pass
|
|
226
|
+
|
|
227
|
+
def getFrom(self, temporal):
|
|
228
|
+
# type: (TemporalAccessor) -> long
|
|
229
|
+
pass
|
|
230
|
+
|
|
231
|
+
def getRangeUnit(self):
|
|
232
|
+
# type: () -> TemporalUnit
|
|
233
|
+
pass
|
|
234
|
+
|
|
235
|
+
def isDateBased(self):
|
|
236
|
+
# type: () -> bool
|
|
237
|
+
return True
|
|
238
|
+
|
|
239
|
+
def isSupportedBy(self, temporal):
|
|
240
|
+
# type: (TemporalAccessor) -> bool
|
|
241
|
+
return True
|
|
242
|
+
|
|
243
|
+
def isTimeBased(self):
|
|
244
|
+
# type: () -> bool
|
|
245
|
+
return True
|
|
246
|
+
|
|
247
|
+
def range(self):
|
|
248
|
+
# type: () -> ValueRange
|
|
249
|
+
pass
|
|
250
|
+
|
|
251
|
+
def rangeRefinedBy(self, temporal):
|
|
252
|
+
# type: (TemporalAccessor) -> ValueRange
|
|
253
|
+
pass
|
|
254
|
+
|
|
255
|
+
@staticmethod
|
|
256
|
+
def values():
|
|
257
|
+
# type: () -> List[ChronoField]
|
|
258
|
+
pass
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
class ChronoUnit(Enum, TemporalUnit):
|
|
262
|
+
CENTURIES = None # type: ChronoUnit
|
|
263
|
+
DAYS = None # type: ChronoUnit
|
|
264
|
+
DECADES = None # type: ChronoUnit
|
|
265
|
+
ERAS = None # type: ChronoUnit
|
|
266
|
+
FOREVER = None # type: ChronoUnit
|
|
267
|
+
MICROS = None # type: ChronoUnit
|
|
268
|
+
MILLENNIA = None # type: ChronoUnit
|
|
269
|
+
MILLIS = None # type: ChronoUnit
|
|
270
|
+
MINUTES = None # type: ChronoUnit
|
|
271
|
+
MONTHS = None # type: ChronoUnit
|
|
272
|
+
NANOS = None # type: ChronoUnit
|
|
273
|
+
SECONDS = None # type: ChronoUnit
|
|
274
|
+
HALF_DAYS = None # type: ChronoUnit
|
|
275
|
+
HOURS = None # type: ChronoUnit
|
|
276
|
+
WEEKS = None # type: ChronoUnit
|
|
277
|
+
YEARS = None # type: ChronoUnit
|
|
278
|
+
|
|
279
|
+
def addTo(self, temporal, amount):
|
|
280
|
+
# type: (Temporal, long) -> Temporal
|
|
281
|
+
pass
|
|
282
|
+
|
|
283
|
+
def between(self, temporal1Inclusive, temporal2Exclusive):
|
|
284
|
+
# type: (Temporal, Temporal) -> Temporal
|
|
285
|
+
pass
|
|
286
|
+
|
|
287
|
+
def getDuration(self):
|
|
288
|
+
# type: () -> Duration
|
|
289
|
+
pass
|
|
290
|
+
|
|
291
|
+
def isDateBased(self):
|
|
292
|
+
# type: () -> bool
|
|
293
|
+
return True
|
|
294
|
+
|
|
295
|
+
def isDurationEstimated(self):
|
|
296
|
+
# type: () -> bool
|
|
297
|
+
return True
|
|
298
|
+
|
|
299
|
+
def isTimeBased(self):
|
|
300
|
+
# type: () -> bool
|
|
301
|
+
return True
|
|
302
|
+
|
|
303
|
+
@staticmethod
|
|
304
|
+
def values():
|
|
305
|
+
# type: () -> List[ChronoUnit]
|
|
306
|
+
pass
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
class ValueRange(Object):
|
|
310
|
+
def checkValidIntValue(self, value, field):
|
|
311
|
+
# type: (long, TemporalField) -> int
|
|
312
|
+
pass
|
|
313
|
+
|
|
314
|
+
def checkValidValue(self, value, field):
|
|
315
|
+
# type: (long, TemporalField) -> long
|
|
316
|
+
pass
|
|
317
|
+
|
|
318
|
+
def getLargestMinimum(self):
|
|
319
|
+
# type: () -> long
|
|
320
|
+
pass
|
|
321
|
+
|
|
322
|
+
def getMaximum(self):
|
|
323
|
+
# type: () -> long
|
|
324
|
+
pass
|
|
325
|
+
|
|
326
|
+
def getMinimum(self):
|
|
327
|
+
# type: () -> long
|
|
328
|
+
pass
|
|
329
|
+
|
|
330
|
+
def getSmallestMaximum(self):
|
|
331
|
+
# type: () -> long
|
|
332
|
+
pass
|
|
333
|
+
|
|
334
|
+
def isFixed(self):
|
|
335
|
+
# type: () -> bool
|
|
336
|
+
return True
|
|
337
|
+
|
|
338
|
+
def isIntValue(self):
|
|
339
|
+
# type: () -> bool
|
|
340
|
+
return True
|
|
341
|
+
|
|
342
|
+
def isValidIntValue(self, value):
|
|
343
|
+
# type: (long) -> bool
|
|
344
|
+
return True
|
|
345
|
+
|
|
346
|
+
def isValidValue(self, value):
|
|
347
|
+
# type: (long) -> bool
|
|
348
|
+
return True
|
|
349
|
+
|
|
350
|
+
@staticmethod
|
|
351
|
+
def of(*args):
|
|
352
|
+
# type: (*Any) -> ValueRange
|
|
353
|
+
pass
|