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
@@ -0,0 +1,319 @@
1
+ __all__ = [
2
+ "ChronoLocalDate",
3
+ "ChronoLocalDateTime",
4
+ "ChronoPeriod",
5
+ "ChronoZonedDateTime",
6
+ "Chronology",
7
+ "Era",
8
+ ]
9
+
10
+ from typing import TYPE_CHECKING, Any, Dict, List, Union
11
+
12
+ from java.lang import Comparable, Object
13
+ from java.time.format import DateTimeFormatter, ResolverStyle, TextStyle
14
+ from java.time.temporal import (
15
+ ChronoField,
16
+ Temporal,
17
+ TemporalAccessor,
18
+ TemporalAdjuster,
19
+ TemporalAmount,
20
+ TemporalField,
21
+ TemporalUnit,
22
+ ValueRange,
23
+ )
24
+ from java.util import Comparator, Locale
25
+
26
+ if TYPE_CHECKING:
27
+ from java.time import Instant, LocalTime, ZoneId, ZoneOffset
28
+
29
+
30
+ class ChronoLocalDate(Temporal, TemporalAdjuster, Comparable):
31
+ def adjustInto(self, temporal):
32
+ # type: (Temporal) -> Temporal
33
+ pass
34
+
35
+ def atTime(self, localTime):
36
+ # type: (LocalTime) -> ChronoLocalDateTime
37
+ pass
38
+
39
+ def compareTo(self, o):
40
+ # type: (ChronoLocalDate) -> int
41
+ pass
42
+
43
+ def equals(self, obj):
44
+ # type: (Any) -> bool
45
+ raise NotImplementedError
46
+
47
+ def format(self, formatter):
48
+ # type: (DateTimeFormatter) -> Union[str, unicode]
49
+ pass
50
+
51
+ def getChronology(self):
52
+ # type: () -> Chronology
53
+ raise NotImplementedError
54
+
55
+ def getEra(self):
56
+ # type: () -> Era
57
+ pass
58
+
59
+ def hashCode(self):
60
+ # type: () -> int
61
+ raise NotImplementedError
62
+
63
+ def isAfter(self, other):
64
+ # type: (ChronoLocalDate) -> bool
65
+ return True
66
+
67
+ def isBefore(self, other):
68
+ # type: (ChronoLocalDate) -> bool
69
+ return True
70
+
71
+ def isEqual(self, other):
72
+ # type: (ChronoLocalDate) -> bool
73
+ return True
74
+
75
+ def isLeapYear(self):
76
+ # type: () -> bool
77
+ raise NotImplementedError
78
+
79
+ def lengthOfMonth(self):
80
+ # type: () -> int
81
+ raise NotImplementedError
82
+
83
+ def lengthOfYear(self):
84
+ # type: () -> int
85
+ pass
86
+
87
+ @staticmethod
88
+ def timeLineOrder():
89
+ # type: () -> Comparator
90
+ pass
91
+
92
+ def toEpochDay(self):
93
+ # type: () -> long
94
+ pass
95
+
96
+ def toString(self):
97
+ # type: () -> Union[str, unicode]
98
+ raise NotImplementedError
99
+
100
+ def until(self, endExclusive, unit):
101
+ # type: (Temporal, TemporalUnit) -> long
102
+ raise NotImplementedError
103
+
104
+
105
+ class ChronoLocalDateTime(Temporal, TemporalAdjuster, Comparable):
106
+ def atZone(self, zone):
107
+ # type: (ZoneId) -> ChronoZonedDateTime
108
+ raise NotImplementedError
109
+
110
+ def toLocalDate(self):
111
+ # type: () -> Any
112
+ raise NotImplementedError
113
+
114
+ def toLocalTime(self):
115
+ # type: () -> LocalTime
116
+ raise NotImplementedError
117
+
118
+ def toString(self):
119
+ # type: () -> Union[str, unicode]
120
+ pass
121
+
122
+
123
+ class ChronoPeriod(TemporalAmount):
124
+ @staticmethod
125
+ def between(startDateInclusive, endDateExclusive):
126
+ # type: (ChronoLocalDate, ChronoLocalDate) -> ChronoPeriod
127
+ raise NotImplementedError
128
+
129
+ def equals(self, obj):
130
+ # type: (Object) -> bool
131
+ raise NotImplementedError
132
+
133
+ def getChronology(self):
134
+ # type: () -> Chronology
135
+ raise NotImplementedError
136
+
137
+ def hashCode(self):
138
+ # type: () -> int
139
+ raise NotImplementedError
140
+
141
+ def isNegative(self):
142
+ # type: () -> bool
143
+ return True
144
+
145
+ def isZero(self):
146
+ # type: () -> bool
147
+ return True
148
+
149
+ def minus(self, amountToSubtract):
150
+ # type: (TemporalAmount) -> ChronoPeriod
151
+ raise NotImplementedError
152
+
153
+ def multipliedBy(self, scalar):
154
+ # type: (int) -> ChronoPeriod
155
+ raise NotImplementedError
156
+
157
+ def negated(self):
158
+ # type: () -> ChronoPeriod
159
+ return ChronoPeriod()
160
+
161
+ def normalized(self):
162
+ # type: () -> ChronoPeriod
163
+ raise NotImplementedError
164
+
165
+ def plus(self, amountToAdd):
166
+ # type: (TemporalAmount) -> ChronoPeriod
167
+ raise NotImplementedError
168
+
169
+ def toString(self):
170
+ # type: () -> Union[str, unicode]
171
+ raise NotImplementedError
172
+
173
+
174
+ class ChronoZonedDateTime(Temporal, Comparable):
175
+
176
+ def format(self, formatter):
177
+ # type: (DateTimeFormatter) -> Union[str, unicode]
178
+ pass
179
+
180
+ def getChronology(self):
181
+ # type: () -> Chronology
182
+ pass
183
+
184
+ def getOffset(self):
185
+ # type: () -> ZoneOffset
186
+ raise NotImplementedError
187
+
188
+ def getZone(self):
189
+ # type: () -> ZoneId
190
+ raise NotImplementedError
191
+
192
+ def isAfter(self, other):
193
+ # type: (ChronoZonedDateTime) -> bool
194
+ pass
195
+
196
+ def isBefore(self, other):
197
+ # type: (ChronoZonedDateTime) -> bool
198
+ pass
199
+
200
+ def isEqual(self, other):
201
+ # type: (ChronoZonedDateTime) -> bool
202
+ pass
203
+
204
+ @staticmethod
205
+ def timeLineOrder():
206
+ # type: () -> Comparator
207
+ pass
208
+
209
+ def toEpochSecond(self):
210
+ # type: () -> long
211
+ pass
212
+
213
+ def toInstant(self):
214
+ # type: () -> Instant
215
+ pass
216
+
217
+ def toLocalDate(self):
218
+ # type: () -> Any
219
+ pass
220
+
221
+ def toLocalDateTime(self):
222
+ # type: () -> ChronoLocalDateTime
223
+ raise NotImplementedError
224
+
225
+ def toLocalTime(self):
226
+ # type: () -> LocalTime
227
+ pass
228
+
229
+ def withEarlierOffsetAtOverlap(self):
230
+ # type: () -> ChronoZonedDateTime
231
+ raise NotImplementedError
232
+
233
+ def withLaterOffsetAtOverlap(self):
234
+ # type: () -> ChronoZonedDateTime
235
+ raise NotImplementedError
236
+
237
+ def withZoneSameInstant(self, zone):
238
+ # type: (ZoneId) -> ChronoZonedDateTime
239
+ raise NotImplementedError
240
+
241
+ def withZoneSameLocal(self, zone):
242
+ # type: (ZoneId) -> ChronoZonedDateTime
243
+ raise NotImplementedError
244
+
245
+
246
+ class Chronology(Comparable):
247
+ def date(self, *args):
248
+ # type: (*Any) -> ChronoLocalDate
249
+ raise NotImplementedError
250
+
251
+ def dateEpochDay(self, epochDay):
252
+ # type: (long) -> ChronoLocalDate
253
+ raise NotImplementedError
254
+
255
+ def dateYearDay(self, prolepticYear, dayOfYear):
256
+ # type: (int, int) -> ChronoLocalDate
257
+ raise NotImplementedError
258
+
259
+ def equals(self, obj):
260
+ # type: (Object) -> bool
261
+ raise NotImplementedError
262
+
263
+ def eraOf(self, eraValue):
264
+ # type: (int) -> Era
265
+ raise NotImplementedError
266
+
267
+ def eras(self):
268
+ # type: () -> List[Era]
269
+ raise NotImplementedError
270
+
271
+ def getCalendarType(self):
272
+ # type: () -> Union[str, unicode]
273
+ raise NotImplementedError
274
+
275
+ def getId(self):
276
+ # type: () -> Union[str, unicode]
277
+ raise NotImplementedError
278
+
279
+ def hashCode(self):
280
+ # type: () -> int
281
+ raise NotImplementedError
282
+
283
+ def isLeapYear(self, prolepticYear):
284
+ # type: (long) -> bool
285
+ raise NotImplementedError
286
+
287
+ def prolepticYear(self, era, yearOfEra):
288
+ # type: (Era, int) -> int
289
+ raise NotImplementedError
290
+
291
+ def range(self, field):
292
+ # type: (ChronoField) -> ValueRange
293
+ raise NotImplementedError
294
+
295
+ def resolveDate(
296
+ self,
297
+ fieldValues, # type: Dict[TemporalField, long]
298
+ resolverStyle, # type: ResolverStyle
299
+ ):
300
+ # type: (...) -> ChronoLocalDate
301
+ raise NotImplementedError
302
+
303
+ def toString(self):
304
+ # type: () -> Union[str, unicode]
305
+ raise NotImplementedError
306
+
307
+
308
+ class Era(TemporalAccessor, TemporalAdjuster):
309
+ def adjustInto(self, temporal):
310
+ # type: (Temporal) -> Temporal
311
+ pass
312
+
313
+ def getDisplayName(self, style, locale):
314
+ # type: (TextStyle, Locale) -> long
315
+ pass
316
+
317
+ def getValue(self):
318
+ # type: () -> int
319
+ raise NotImplementedError
@@ -0,0 +1,72 @@
1
+ __all__ = ["DateTimeFormatter", "ResolverStyle", "TextStyle"]
2
+
3
+ from typing import TYPE_CHECKING, List, Union
4
+
5
+ from java.lang import Appendable, Enum, Object
6
+
7
+ if TYPE_CHECKING:
8
+ from java.time.chrono import Chronology
9
+ from java.time.temporal import TemporalAccessor
10
+
11
+
12
+ class DateTimeFormatter(Object):
13
+ BASIC_ISO_DATE = None # type: DateTimeFormatter
14
+ ISO_DATE = None # type: DateTimeFormatter
15
+ ISO_DATE_TIME = None # type: DateTimeFormatter
16
+ ISO_INSTANT = None # type: DateTimeFormatter
17
+ ISO_LOCAL_DATE = None # type: DateTimeFormatter
18
+ ISO_LOCAL_DATE_TIME = None # type: DateTimeFormatter
19
+ ISO_LOCAL_TIME = None # type: DateTimeFormatter
20
+ ISO_OFFSET_DATE = None # type: DateTimeFormatter
21
+ ISO_OFFSET_DATE_TIME = None # type: DateTimeFormatter
22
+ ISO_OFFSET_TIME = None # type: DateTimeFormatter
23
+ ISO_ORDINAL_DATE = None # type: DateTimeFormatter
24
+ ISO_TIME = None # type: DateTimeFormatter
25
+ ISO_WEEK_DATE = None # type: DateTimeFormatter
26
+ ISO_ZONED_DATE_TIME = None # type: DateTimeFormatter
27
+ RFC_1123_DATE_TIME = None # type: DateTimeFormatter
28
+
29
+ def format(self, temporal):
30
+ # type: (TemporalAccessor) -> Union[str, unicode]
31
+ pass
32
+
33
+ def formatTo(self, temporal, appendable):
34
+ # type: (TemporalAccessor, Appendable) -> None
35
+ pass
36
+
37
+ def getChronology(self):
38
+ # type: () -> Chronology
39
+ pass
40
+
41
+
42
+ class ResolverStyle(Enum):
43
+ LENIENT = None # type: ResolverStyle
44
+ SMART = None # type: ResolverStyle
45
+ STRICT = None # type: ResolverStyle
46
+
47
+ @staticmethod
48
+ def values():
49
+ # type: () -> List[ResolverStyle]
50
+ pass
51
+
52
+
53
+ class TextStyle(Enum):
54
+ FULL = None # type: TextStyle
55
+ FULL_STANDALONE = None # type: TextStyle
56
+ NARROW = None # type: TextStyle
57
+ NARROW_STANDALONE = None # type: TextStyle
58
+ SHORT = None # type: TextStyle
59
+ SHORT_STANDALONE = None # type: TextStyle
60
+
61
+ def asNormal(self):
62
+ # type: () -> TextStyle
63
+ pass
64
+
65
+ def asStandalone(self):
66
+ # type: () -> TextStyle
67
+ pass
68
+
69
+ @staticmethod
70
+ def values():
71
+ # type: () -> List[TextStyle]
72
+ pass