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.
Files changed (46) hide show
  1. java/__init__.py +0 -0
  2. java/awt/__init__.py +265 -0
  3. java/awt/event/__init__.py +184 -0
  4. java/awt/geom/__init__.py +116 -0
  5. java/awt/image/__init__.py +14 -0
  6. java/awt/print/__init__.py +93 -0
  7. java/beans/__init__.py +38 -0
  8. java/io/__init__.py +442 -0
  9. java/lang/__init__.py +868 -0
  10. java/lang/reflect/__init__.py +9 -0
  11. java/math/__init__.py +93 -0
  12. java/net/__init__.py +504 -0
  13. java/net/http/__init__.py +15 -0
  14. java/nio/__init__.py +667 -0
  15. java/nio/channels/__init__.py +352 -0
  16. java/nio/charset/__init__.py +146 -0
  17. java/nio/file/__init__.py +728 -0
  18. java/nio/file/attribute/__init__.py +141 -0
  19. java/org/__init__.py +0 -0
  20. java/org/jdesktop/__init__.py +0 -0
  21. java/org/jdesktop/core/__init__.py +0 -0
  22. java/org/jdesktop/core/animation/__init__.py +0 -0
  23. java/org/jdesktop/core/animation/timing/__init__.py +17 -0
  24. java/security/__init__.py +27 -0
  25. java/text/__init__.py +543 -0
  26. java/time/__init__.py +575 -0
  27. java/time/chrono/__init__.py +319 -0
  28. java/time/format/__init__.py +72 -0
  29. java/time/temporal/__init__.py +353 -0
  30. java/util/__init__.py +1479 -0
  31. java/util/concurrent/__init__.py +147 -0
  32. java/util/function/__init__.py +131 -0
  33. java/util/regex/__init__.py +197 -0
  34. java/util/stream/__init__.py +128 -0
  35. java_api-17.25.0.dist-info/LICENSE +21 -0
  36. java_api-17.25.0.dist-info/METADATA +150 -0
  37. java_api-17.25.0.dist-info/RECORD +46 -0
  38. java_api-17.25.0.dist-info/WHEEL +5 -0
  39. java_api-17.25.0.dist-info/top_level.txt +2 -0
  40. javax/__init__.py +0 -0
  41. javax/security/__init__.py +0 -0
  42. javax/security/auth/__init__.py +14 -0
  43. javax/swing/__init__.py +483 -0
  44. javax/swing/event/__init__.py +43 -0
  45. javax/swing/plaf/__init__.py +28 -0
  46. javax/swing/text/__init__.py +19 -0
java/time/__init__.py ADDED
@@ -0,0 +1,575 @@
1
+ __all__ = [
2
+ "Clock",
3
+ "DayOfWeek",
4
+ "Duration",
5
+ "Instant",
6
+ "LocalDate",
7
+ "LocalDateTime",
8
+ "LocalTime",
9
+ "Month",
10
+ "OffsetDateTime",
11
+ "ZoneId",
12
+ "ZoneOffset",
13
+ "ZonedDateTime",
14
+ ]
15
+
16
+ from typing import TYPE_CHECKING, Any, Dict, List, Optional, Set, Union
17
+
18
+ from java.lang import CharSequence, Comparable, Enum, Object
19
+ from java.time.chrono import ChronoLocalDateTime, ChronoZonedDateTime
20
+ from java.time.format import DateTimeFormatter, TextStyle
21
+ from java.time.temporal import (
22
+ Temporal,
23
+ TemporalAccessor,
24
+ TemporalAdjuster,
25
+ TemporalUnit,
26
+ )
27
+
28
+ if TYPE_CHECKING:
29
+ from java.util import Locale
30
+
31
+
32
+ class Clock(Object):
33
+ @staticmethod
34
+ def offset(baseClock, offsetDuration):
35
+ # type: (Instant, ZoneId) -> Clock
36
+ pass
37
+
38
+ @staticmethod
39
+ def systemDefaultZone():
40
+ # type: () -> Clock
41
+ pass
42
+
43
+ @staticmethod
44
+ def systemUTC():
45
+ # type: () -> Clock
46
+ pass
47
+
48
+ @staticmethod
49
+ def tick(baseClock, tickDuration):
50
+ # type: (Clock, Duration) -> Clock
51
+ pass
52
+
53
+ @staticmethod
54
+ def tickMillis(zone):
55
+ # type: (ZoneId) -> Clock
56
+ pass
57
+
58
+ @staticmethod
59
+ def tickMinutes(zone):
60
+ # type: (ZoneId) -> Clock
61
+ pass
62
+
63
+ @staticmethod
64
+ def tickSeconds(zone):
65
+ # type: (ZoneId) -> Clock
66
+ pass
67
+
68
+
69
+ class DayOfWeek(Enum, TemporalAccessor, TemporalAdjuster):
70
+ FRIDAY = None # type: DayOfWeek
71
+ MONDAY = None # type: DayOfWeek
72
+ SATURDAY = None # type: DayOfWeek
73
+ SUNDAY = None # type: DayOfWeek
74
+ THURSDAY = None # type: DayOfWeek
75
+ TUESDAY = None # type: DayOfWeek
76
+ WEDNESDAY = None # type: DayOfWeek
77
+
78
+ def getValue(self):
79
+ # type: () -> int
80
+ pass
81
+
82
+ def minus(self, days):
83
+ # type: (long) -> DayOfWeek
84
+ pass
85
+
86
+ @staticmethod
87
+ def of(dayOfWeek):
88
+ # type: (int) -> DayOfWeek
89
+ pass
90
+
91
+ def plus(self, days):
92
+ # type: (long) -> DayOfWeek
93
+ pass
94
+
95
+ @staticmethod
96
+ def values():
97
+ # type: () -> List[DayOfWeek]
98
+ pass
99
+
100
+
101
+ class Duration(Object):
102
+ ZERO = None # type: Duration
103
+
104
+ def toDays(self):
105
+ # type: () -> long
106
+ pass
107
+
108
+ def toDaysPart(self):
109
+ # type: () -> long
110
+ pass
111
+
112
+ def toHours(self):
113
+ # type: () -> long
114
+ pass
115
+
116
+ def toHoursPart(self):
117
+ # type: () -> int
118
+ pass
119
+
120
+ def toMillis(self):
121
+ # type: () -> long
122
+ pass
123
+
124
+ def toMillisPart(self):
125
+ # type: () -> int
126
+ pass
127
+
128
+ def toMinutes(self):
129
+ # type: () -> long
130
+ pass
131
+
132
+ def toMinutesPart(self):
133
+ # type: () -> int
134
+ pass
135
+
136
+ def toNanos(self):
137
+ # type: () -> long
138
+ pass
139
+
140
+ def toNanosPart(self):
141
+ # type: () -> int
142
+ pass
143
+
144
+ def toSeconds(self):
145
+ # type: () -> long
146
+ pass
147
+
148
+ def toSecondsPart(self):
149
+ # type: () -> int
150
+ pass
151
+
152
+
153
+ class Instant(Object):
154
+ EPOCH = None # type: Instant
155
+ MAX = None # type: Instant
156
+ MIN = None # type: Instant
157
+
158
+ @staticmethod
159
+ def now(clock=None):
160
+ # type: (Optional[Clock]) -> Instant
161
+ pass
162
+
163
+ @staticmethod
164
+ def ofEpochMilli(epochMilli):
165
+ # type: (long) -> Instant
166
+ pass
167
+
168
+ @staticmethod
169
+ def ofEpochSecond(epochSecond, nanoAdjustment=None):
170
+ # type: (long, Optional[long]) -> Instant
171
+ pass
172
+
173
+ @staticmethod
174
+ def parse(text):
175
+ # type: (CharSequence) -> Instant
176
+ pass
177
+
178
+
179
+ class LocalDate(Object, Temporal, TemporalAdjuster, Comparable):
180
+ EPOCH = None # type: LocalDate
181
+ MAX = None # type: LocalDate
182
+ MIN = None # type: LocalDate
183
+
184
+ def compareTo(self, o):
185
+ # type: (Any) -> int
186
+ pass
187
+
188
+ def until(self, endExclusive, unit):
189
+ # type: (Temporal, TemporalUnit) -> long
190
+ pass
191
+
192
+ def atStartOfDay(self, zone):
193
+ # type: (ZoneId) -> LocalDateTime
194
+ pass
195
+
196
+ def atTime(self, *args):
197
+ # type: (*Any) -> Union[LocalDateTime, OffsetDateTime]
198
+ pass
199
+
200
+ @staticmethod
201
+ def now(clock=None):
202
+ # type: (Optional[Clock]) -> LocalDate
203
+ pass
204
+
205
+ @staticmethod
206
+ def of(year, month, dayOfMonth):
207
+ # type: (int, int, int) -> LocalDate
208
+ pass
209
+
210
+ @staticmethod
211
+ def parse(text):
212
+ # type: (CharSequence) -> LocalDate
213
+ pass
214
+
215
+
216
+ class LocalDateTime(Object, ChronoLocalDateTime):
217
+ MAX = None # type: LocalDateTime
218
+ MIN = None # type: LocalDateTime
219
+
220
+ def atOffset(self, offset):
221
+ # type: (ZoneOffset) -> OffsetDateTime
222
+ pass
223
+
224
+ def atZone(self, zone):
225
+ # type: (ZoneId) -> ZonedDateTime
226
+ pass
227
+
228
+ def toLocalDate(self):
229
+ # type: () -> LocalDate
230
+ pass
231
+
232
+ def toLocalTime(self):
233
+ # type: () -> LocalTime
234
+ pass
235
+
236
+ def until(self, endExclusive, unit):
237
+ # type: (Temporal, TemporalUnit) -> long
238
+ pass
239
+
240
+ def adjustInto(self, temporal):
241
+ # type: (Temporal) -> Temporal
242
+ pass
243
+
244
+ def compareTo(self, o):
245
+ # type: (Any) -> int
246
+ pass
247
+
248
+
249
+ class LocalTime(Object, Temporal, TemporalAdjuster, Comparable):
250
+ MAX = None # type: LocalTime
251
+ MIDNIGHT = None # type: LocalTime
252
+ MIN = None # type: LocalTime
253
+ NOON = None # type: LocalTime
254
+
255
+ def adjustInto(self, temporal):
256
+ # type: (Temporal) -> Temporal
257
+ pass
258
+
259
+ def atDate(self, date):
260
+ # type: (LocalDate) -> LocalDateTime
261
+ pass
262
+
263
+ def compareTo(self, o):
264
+ # type: (Any) -> int
265
+ pass
266
+
267
+ @staticmethod
268
+ def now(clock=None):
269
+ # type: (Optional[Clock]) -> LocalTime
270
+ pass
271
+
272
+ @staticmethod
273
+ def of(hour, minute, second=0, nano=0):
274
+ # type: (int, int, Optional[int], Optional[int]) -> LocalTime
275
+ pass
276
+
277
+ @staticmethod
278
+ def parse(text):
279
+ # type: (CharSequence) -> LocalTime
280
+ pass
281
+
282
+ def until(self, endExclusive, unit):
283
+ # type: (Temporal, TemporalUnit) -> long
284
+ pass
285
+
286
+
287
+ class Month(Enum, TemporalAccessor, TemporalAdjuster):
288
+ JANUARY = None # type: Month
289
+ FEBRUARY = None # type: Month
290
+ MARCH = None # type: Month
291
+ APRIL = None # type: Month
292
+ MAY = None # type: Month
293
+ JUNE = None # type: Month
294
+ JULY = None # type: Month
295
+ AUGUST = None # type: Month
296
+ SEPTEMBER = None # type: Month
297
+ OCTOBER = None # type: Month
298
+ NOVEMBER = None # type: Month
299
+ DECEMBER = None # type: Month
300
+
301
+ def adjustInto(self, temporal):
302
+ # type: (Temporal) -> Temporal
303
+ pass
304
+
305
+ def firstDayOfYear(self, leapYear):
306
+ # type: (bool) -> int
307
+ pass
308
+
309
+ def firstMonthOfQuarter(self):
310
+ # type: () -> Month
311
+ pass
312
+
313
+ def getDisplayName(self, style, locale):
314
+ # type: (TextStyle, Locale) -> Union[str, unicode]
315
+ pass
316
+
317
+ def getValue(self):
318
+ # type: () -> int
319
+ pass
320
+
321
+ def length(self, leapYear):
322
+ # type: (bool) -> int
323
+ pass
324
+
325
+ def maxLength(self):
326
+ # type: () -> int
327
+ pass
328
+
329
+ def minLength(self):
330
+ # type: () -> int
331
+ pass
332
+
333
+ def minus(self, months):
334
+ # type: (long) -> Month
335
+ pass
336
+
337
+ @staticmethod
338
+ def of(month):
339
+ # type: (int) -> Month
340
+ pass
341
+
342
+ def plus(self, months):
343
+ # type: (long) -> Month
344
+ pass
345
+
346
+ @staticmethod
347
+ def values():
348
+ # type: () -> List[Month]
349
+ pass
350
+
351
+
352
+ class OffsetDateTime(Object, Temporal, TemporalAdjuster, Comparable):
353
+ MAX = None # type: OffsetDateTime
354
+ MIN = None # type: OffsetDateTime
355
+
356
+ def adjustInto(self, temporal):
357
+ # type: (Temporal) -> Temporal
358
+ pass
359
+
360
+ def atZoneSameInstant(self, zone):
361
+ # type: (ZoneId) -> ZonedDateTime
362
+ pass
363
+
364
+ def compareTo(self, o):
365
+ # type: (Any) -> int
366
+ pass
367
+
368
+ def toLocalDateTime(self):
369
+ # type: () -> LocalDateTime
370
+ pass
371
+
372
+ def until(self, endExclusive, unit):
373
+ # type: (Temporal, TemporalUnit) -> long
374
+ pass
375
+
376
+
377
+ class ZoneId(Object):
378
+ SHORT_IDS = None # type: Dict[Union[str, unicode], Union[str, unicode]]
379
+
380
+ @staticmethod
381
+ def getAvailableZoneIds():
382
+ # type: () -> Set[Union[str, unicode]]
383
+ pass
384
+
385
+ @staticmethod
386
+ def of(
387
+ zoneId, # type: Union[str, unicode]
388
+ aliasMap=None, # type: Optional[Dict[Union[str, unicode], Union[str, unicode]]]
389
+ ):
390
+ # type: (...) -> ZoneId
391
+ pass
392
+
393
+ @staticmethod
394
+ def ofOffset(prefix, offset):
395
+ # type: (Union[str, unicode], ZoneOffset) -> ZoneId
396
+ pass
397
+
398
+ @staticmethod
399
+ def systemDefault():
400
+ # type: () -> ZoneId
401
+ pass
402
+
403
+
404
+ class ZoneOffset(Object):
405
+ MAX = None # type: ZoneOffset
406
+ MIN = None # type: ZoneOffset
407
+ UTC = None # type: ZoneOffset
408
+
409
+ @staticmethod
410
+ def of(offsetId):
411
+ # type: (Union[str, unicode]) -> ZoneOffset
412
+ pass
413
+
414
+ @staticmethod
415
+ def ofHours(hours):
416
+ # type: (int) -> ZoneOffset
417
+ pass
418
+
419
+ @staticmethod
420
+ def ofHoursMinutes(hours, minutes):
421
+ # type: (int, int) -> ZoneOffset
422
+ pass
423
+
424
+ @staticmethod
425
+ def ofHoursMinutesSeconds(hours, minutes, seconds):
426
+ # type: (int, int, int) -> ZoneOffset
427
+ pass
428
+
429
+ @staticmethod
430
+ def ofTotalSeconds(totalSeconds):
431
+ # type: (int) -> ZoneOffset
432
+ pass
433
+
434
+
435
+ class ZonedDateTime(Object, ChronoZonedDateTime):
436
+ def toLocalDateTime(self):
437
+ # type: () -> LocalDateTime
438
+ pass
439
+
440
+ def withEarlierOffsetAtOverlap(self):
441
+ # type: () -> ZonedDateTime
442
+ pass
443
+
444
+ def withLaterOffsetAtOverlap(self):
445
+ # type: () -> ZonedDateTime
446
+ pass
447
+
448
+ def withZoneSameInstant(self, zone):
449
+ # type: (ZoneId) -> ZonedDateTime
450
+ pass
451
+
452
+ def withZoneSameLocal(self, zone):
453
+ # type: (ZoneId) -> ZonedDateTime
454
+ pass
455
+
456
+ def until(self, endExclusive, unit):
457
+ # type: (Temporal, TemporalUnit) -> long
458
+ pass
459
+
460
+ def compareTo(self, o):
461
+ # type: (Any) -> int
462
+ pass
463
+
464
+ def getDayOfMonth(self):
465
+ # type: () -> int
466
+ pass
467
+
468
+ def getDayOfWeek(self):
469
+ # type: () -> DayOfWeek
470
+ pass
471
+
472
+ def getDayOfYear(self):
473
+ # type: () -> int
474
+ pass
475
+
476
+ def getHour(self):
477
+ # type: () -> int
478
+ pass
479
+
480
+ def getMinute(self):
481
+ # type: () -> int
482
+ pass
483
+
484
+ def getMonth(self):
485
+ # type: () -> Month
486
+ pass
487
+
488
+ def getMonthValue(self):
489
+ # type: () -> int
490
+ pass
491
+
492
+ def getNano(self):
493
+ # type: () -> int
494
+ pass
495
+
496
+ def getOffset(self):
497
+ # type: () -> ZoneOffset
498
+ pass
499
+
500
+ def getSecond(self):
501
+ # type: () -> int
502
+ pass
503
+
504
+ def getYear(self):
505
+ # type: () -> int
506
+ pass
507
+
508
+ def getZone(self):
509
+ # type: () -> ZoneId
510
+ pass
511
+
512
+ def minusDays(self, days):
513
+ # type: (int) -> ZonedDateTime
514
+ pass
515
+
516
+ def minusHours(self, hours):
517
+ # type: (int) -> ZonedDateTime
518
+ pass
519
+
520
+ def minusMinutes(self, minutes):
521
+ # type: (int) -> ZonedDateTime
522
+ pass
523
+
524
+ def minusMonths(self, months):
525
+ # type: (int) -> ZonedDateTime
526
+ pass
527
+
528
+ def minusNanos(self, nanos):
529
+ # type: (int) -> ZonedDateTime
530
+ pass
531
+
532
+ def minusSeconds(self, seconds):
533
+ # type: (int) -> ZonedDateTime
534
+ pass
535
+
536
+ def minusWeeks(self, weeks):
537
+ # type: (int) -> ZonedDateTime
538
+ pass
539
+
540
+ def minusYears(self, years):
541
+ # type: (int) -> ZonedDateTime
542
+ pass
543
+
544
+ @staticmethod
545
+ def now(arg=None):
546
+ # type: (Optional[Union[Clock, ZoneId]]) -> ZonedDateTime
547
+ pass
548
+
549
+ @staticmethod
550
+ def of(*args):
551
+ # type: (*Any) -> ZonedDateTime
552
+ pass
553
+
554
+ @staticmethod
555
+ def ofInstant(*args):
556
+ # type: (*Any) -> ZonedDateTime
557
+ pass
558
+
559
+ @staticmethod
560
+ def ofLocal(localDateTime, zone, preferredOffset):
561
+ # type: (LocalDateTime, ZoneId, ZoneOffset) -> ZonedDateTime
562
+ pass
563
+
564
+ @staticmethod
565
+ def ofStrict(localDateTime, offset, zone):
566
+ # type: (LocalDateTime, ZoneOffset, ZoneId) -> ZonedDateTime
567
+ pass
568
+
569
+ @staticmethod
570
+ def parse(
571
+ text, # type: CharSequence
572
+ formatter=None, # type: Optional[DateTimeFormatter]
573
+ ):
574
+ # type: (...) -> ZonedDateTime
575
+ pass