java-api-stubs 17.25.0__py3-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 (48) hide show
  1. java/__init__.pyi +0 -0
  2. java/awt/__init__.pyi +95 -0
  3. java/awt/event/__init__.pyi +87 -0
  4. java/awt/geom/__init__.pyi +38 -0
  5. java/awt/image/__init__.pyi +6 -0
  6. java/awt/print/__init__.pyi +32 -0
  7. java/beans/__init__.pyi +20 -0
  8. java/io/__init__.pyi +155 -0
  9. java/lang/__init__.pyi +260 -0
  10. java/lang/reflect/__init__.pyi +4 -0
  11. java/math/__init__.pyi +41 -0
  12. java/net/__init__.pyi +178 -0
  13. java/net/http/__init__.pyi +5 -0
  14. java/nio/__init__.pyi +196 -0
  15. java/nio/channels/__init__.pyi +127 -0
  16. java/nio/charset/__init__.pyi +59 -0
  17. java/nio/file/__init__.pyi +328 -0
  18. java/nio/file/attribute/__init__.pyi +57 -0
  19. java/org/__init__.pyi +0 -0
  20. java/org/jdesktop/__init__.pyi +0 -0
  21. java/org/jdesktop/core/__init__.pyi +0 -0
  22. java/org/jdesktop/core/animation/__init__.pyi +0 -0
  23. java/org/jdesktop/core/animation/timing/__init__.pyi +6 -0
  24. java/py.typed +0 -0
  25. java/security/__init__.pyi +11 -0
  26. java/text/__init__.pyi +211 -0
  27. java/time/__init__.pyi +233 -0
  28. java/time/chrono/__init__.pyi +103 -0
  29. java/time/format/__init__.pyi +44 -0
  30. java/time/temporal/__init__.pyi +148 -0
  31. java/util/__init__.pyi +530 -0
  32. java/util/concurrent/__init__.pyi +57 -0
  33. java/util/function/__init__.pyi +51 -0
  34. java/util/regex/__init__.pyi +73 -0
  35. java/util/stream/__init__.pyi +45 -0
  36. java_api_stubs-17.25.0.dist-info/METADATA +100 -0
  37. java_api_stubs-17.25.0.dist-info/RECORD +48 -0
  38. java_api_stubs-17.25.0.dist-info/WHEEL +5 -0
  39. java_api_stubs-17.25.0.dist-info/licenses/LICENSE +21 -0
  40. java_api_stubs-17.25.0.dist-info/top_level.txt +2 -0
  41. javax/__init__.pyi +0 -0
  42. javax/py.typed +0 -0
  43. javax/security/__init__.pyi +0 -0
  44. javax/security/auth/__init__.pyi +6 -0
  45. javax/swing/__init__.pyi +186 -0
  46. javax/swing/event/__init__.pyi +17 -0
  47. javax/swing/plaf/__init__.pyi +11 -0
  48. javax/swing/text/__init__.pyi +7 -0
@@ -0,0 +1,148 @@
1
+ from typing import Any, Dict, List, Optional, Union
2
+
3
+ from java.lang import Enum, Object
4
+ from java.time import Duration
5
+ from java.time.format import ResolverStyle
6
+ from java.util import Locale
7
+
8
+ class TemporalAccessor:
9
+ def get(self, field: TemporalField) -> int: ...
10
+ def getLong(self, field: TemporalField) -> long: ...
11
+ def isSupported(self, field: TemporalField) -> bool: ...
12
+ def query(self, query: TemporalQuery) -> Any: ...
13
+ def range(self, field: TemporalField) -> ValueRange: ...
14
+
15
+ class TemporalAdjuster:
16
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
17
+
18
+ class TemporalAmount:
19
+ def addTo(self, temporal: Temporal) -> Temporal: ...
20
+ def get(self, unit: TemporalUnit) -> long: ...
21
+ def getUnits(self) -> List[TemporalUnit]: ...
22
+ def subtractFrom(self, temporal: Temporal) -> Temporal: ...
23
+
24
+ class TemporalField:
25
+ def adjustInto(self, temporal: Any, newValue: long) -> Temporal: ...
26
+ def getBaseUnit(self) -> TemporalUnit: ...
27
+ def getDisplayName(self, locale: Locale) -> Union[str, unicode]: ...
28
+ def getFrom(self, temporal: TemporalAccessor) -> long: ...
29
+ def getRangeUnit(self) -> TemporalUnit: ...
30
+ def isDateBased(self) -> bool: ...
31
+ def isSupportedBy(self, temporal: TemporalAccessor) -> bool: ...
32
+ def isTimeBased(self) -> bool: ...
33
+ def range(self) -> ValueRange: ...
34
+ def rangeRefinedBy(self, temporal: TemporalAccessor) -> ValueRange: ...
35
+ def resolve(
36
+ self,
37
+ fieldValues: Dict[TemporalField, long],
38
+ partialTemporal: TemporalAccessor,
39
+ resolverStyle: ResolverStyle,
40
+ ) -> TemporalAccessor: ...
41
+ def toString(self) -> Union[str, unicode]: ...
42
+
43
+ class TemporalQuery:
44
+ def queryFrom(self, temporal: TemporalAccessor) -> Any: ...
45
+
46
+ class TemporalUnit:
47
+ def addTo(self, temporal: Temporal, amount: long) -> Temporal: ...
48
+ def between(
49
+ self, temporal1Inclusive: Temporal, temporal2Exclusive: Temporal
50
+ ) -> Temporal: ...
51
+ def isSupportedBy(self, temporal: Temporal) -> bool: ...
52
+ def getDuration(self) -> Duration: ...
53
+ def isDateBased(self) -> bool: ...
54
+ def isDurationEstimated(self) -> bool: ...
55
+ def isTimeBased(self) -> bool: ...
56
+ def toString(self) -> Union[str, unicode]: ...
57
+
58
+ class Temporal(TemporalAccessor):
59
+ def minus(self, amount: long, unit: Optional[TemporalUnit] = ...) -> Temporal: ...
60
+ def plus(self, amount: long, unit: Optional[TemporalUnit] = ...) -> Temporal: ...
61
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
62
+
63
+ class ChronoField(Enum, TemporalField):
64
+ ALIGNED_DAY_OF_WEEK_IN_MONTH: ChronoField
65
+ ALIGNED_DAY_OF_WEEK_IN_YEAR: ChronoField
66
+ ALIGNED_WEEK_OF_MONTH: ChronoField
67
+ ALIGNED_WEEK_OF_YEAR: ChronoField
68
+ AMPM_OF_DAY: ChronoField
69
+ CLOCK_HOUR_OF_AMPM: ChronoField
70
+ CLOCK_HOUR_OF_DAY: ChronoField
71
+ DAY_OF_MONTH: ChronoField
72
+ DAY_OF_WEEK: ChronoField
73
+ DAY_OF_YEAR: ChronoField
74
+ EPOCH_DAY: ChronoField
75
+ ERA: ChronoField
76
+ HOUR_OF_AMPM: ChronoField
77
+ HOUR_OF_DAY: ChronoField
78
+ INSTANT_SECONDS: ChronoField
79
+ MICRO_OF_DAY: ChronoField
80
+ MICRO_OF_SECOND: ChronoField
81
+ MILLI_OF_DAY: ChronoField
82
+ MILLI_OF_SECOND: ChronoField
83
+ MINUTE_OF_DAY: ChronoField
84
+ MINUTE_OF_HOUR: ChronoField
85
+ MONTH_OF_YEAR: ChronoField
86
+ NANO_OF_DAY: ChronoField
87
+ NANO_OF_SECOND: ChronoField
88
+ OFFSET_SECONDS: ChronoField
89
+ PROLEPTIC_MONTH: ChronoField
90
+ SECOND_OF_DAY: ChronoField
91
+ SECOND_OF_MINUTE: ChronoField
92
+ YEAR: ChronoField
93
+ YEAR_OF_ERA: ChronoField
94
+ def adjustInto(self, temporal: Temporal, newValue: long) -> Temporal: ...
95
+ def checkValidIntValue(self, value: long) -> int: ...
96
+ def checkValidValue(self, value: long) -> long: ...
97
+ def getBaseUnit(self) -> TemporalUnit: ...
98
+ def getFrom(self, temporal: TemporalAccessor) -> long: ...
99
+ def getRangeUnit(self) -> TemporalUnit: ...
100
+ def isDateBased(self) -> bool: ...
101
+ def isSupportedBy(self, temporal: TemporalAccessor) -> bool: ...
102
+ def isTimeBased(self) -> bool: ...
103
+ def range(self) -> ValueRange: ...
104
+ def rangeRefinedBy(self, temporal: TemporalAccessor) -> ValueRange: ...
105
+ @staticmethod
106
+ def values() -> List[ChronoField]: ...
107
+
108
+ class ChronoUnit(Enum, TemporalUnit):
109
+ CENTURIES: ChronoUnit
110
+ DAYS: ChronoUnit
111
+ DECADES: ChronoUnit
112
+ ERAS: ChronoUnit
113
+ FOREVER: ChronoUnit
114
+ MICROS: ChronoUnit
115
+ MILLENNIA: ChronoUnit
116
+ MILLIS: ChronoUnit
117
+ MINUTES: ChronoUnit
118
+ MONTHS: ChronoUnit
119
+ NANOS: ChronoUnit
120
+ SECONDS: ChronoUnit
121
+ HALF_DAYS: ChronoUnit
122
+ HOURS: ChronoUnit
123
+ WEEKS: ChronoUnit
124
+ YEARS: ChronoUnit
125
+ def addTo(self, temporal: Temporal, amount: long) -> Temporal: ...
126
+ def between(
127
+ self, temporal1Inclusive: Temporal, temporal2Exclusive: Temporal
128
+ ) -> Temporal: ...
129
+ def getDuration(self) -> Duration: ...
130
+ def isDateBased(self) -> bool: ...
131
+ def isDurationEstimated(self) -> bool: ...
132
+ def isTimeBased(self) -> bool: ...
133
+ @staticmethod
134
+ def values() -> List[ChronoUnit]: ...
135
+
136
+ class ValueRange(Object):
137
+ def checkValidIntValue(self, value: long, field: TemporalField) -> int: ...
138
+ def checkValidValue(self, value: long, field: TemporalField) -> long: ...
139
+ def getLargestMinimum(self) -> long: ...
140
+ def getMaximum(self) -> long: ...
141
+ def getMinimum(self) -> long: ...
142
+ def getSmallestMaximum(self) -> long: ...
143
+ def isFixed(self) -> bool: ...
144
+ def isIntValue(self) -> bool: ...
145
+ def isValidIntValue(self, value: long) -> bool: ...
146
+ def isValidValue(self, value: long) -> bool: ...
147
+ @staticmethod
148
+ def of(*args: Any) -> ValueRange: ...
java/util/__init__.pyi ADDED
@@ -0,0 +1,530 @@
1
+ from typing import Any, Dict, Iterable, List, Mapping, Optional, Set, Union
2
+
3
+ from java.io import InputStream, OutputStream
4
+ from java.lang import Class, Object, RuntimeException, Throwable
5
+ from java.nio import ByteBuffer
6
+ from java.time import Instant, ZonedDateTime, ZoneId
7
+ from java.util.function import (
8
+ BiFunction,
9
+ Consumer,
10
+ Function,
11
+ Predicate,
12
+ Supplier,
13
+ ToDoubleFunction,
14
+ ToIntFunction,
15
+ ToLongFunction,
16
+ )
17
+
18
+ class Collection:
19
+ def add(self, e: Any) -> bool: ...
20
+ def addAll(self, c: Collection) -> bool: ...
21
+ def clear(self) -> None: ...
22
+ def contains(self, o: Object) -> bool: ...
23
+ def containsAll(self, c: Collection) -> bool: ...
24
+ def equals(self, o: Object) -> bool: ...
25
+ def forEach(self, action: Consumer) -> None: ...
26
+ def hashCode(self) -> int: ...
27
+ def isEmpty(self) -> bool: ...
28
+ def iterator(self) -> Iterator: ...
29
+ def parallelStream(self) -> Stream: ...
30
+ def remove(self, o: Object) -> bool: ...
31
+ def removeAll(self, c: Collection) -> bool: ...
32
+ def removeIf(self, filter: Predicate) -> bool: ...
33
+ def retainAll(self, v: Collection) -> bool: ...
34
+ def size(self) -> int: ...
35
+ def spliterator(self) -> Spliterator: ...
36
+ def stream(self) -> Stream: ...
37
+ def toArray(self, arg: Optional[Any] = ...) -> List[Object]: ...
38
+ def __getitem__(self, key: Union[int, Any]) -> Any: ...
39
+ def __len__(self) -> int: ...
40
+
41
+ class Comparator:
42
+ def compare(self, o1: Any, o2: Any) -> int: ...
43
+ @staticmethod
44
+ def comparing(keyExtractor: Function, keyComparator: Comparator) -> Comparator: ...
45
+ @staticmethod
46
+ def comparingDouble(keyExtractor: ToDoubleFunction) -> Comparator: ...
47
+ @staticmethod
48
+ def comparingInt(keyExtractor: ToIntFunction) -> Comparator: ...
49
+ @staticmethod
50
+ def comparingLong(keyExtractor: ToLongFunction) -> Comparator: ...
51
+ def equals(self, obj: Object) -> bool: ...
52
+ @staticmethod
53
+ def naturalOrder() -> Comparator: ...
54
+ @staticmethod
55
+ def nullsFirst(comparator: Comparator) -> Comparator: ...
56
+ @staticmethod
57
+ def nullsLast(comparator: Comparator) -> Comparator: ...
58
+ def reversed(self) -> Comparator: ...
59
+ @staticmethod
60
+ def reverseOrder() -> Comparator: ...
61
+ def thenComparing(self, *args: Any) -> Comparator: ...
62
+ def thenComparingDouble(self, keyExtractor: ToDoubleFunction) -> Comparator: ...
63
+ def thenComparingInt(self, keyExtractor: ToIntFunction) -> Comparator: ...
64
+ def thenComparingLong(self, keyExtractor: ToLongFunction) -> Comparator: ...
65
+
66
+ class Enumeration:
67
+ def asIterator(self) -> Iterator: ...
68
+ def hasMoreElements(self) -> bool: ...
69
+ def nextElement(self) -> Any: ...
70
+
71
+ class Iterator:
72
+ def forEachRemaining(self, action: Consumer) -> None: ...
73
+ def hasNext(self) -> bool: ...
74
+ def next(self) -> Any: ...
75
+ def remove(self) -> bool: ...
76
+
77
+ class ListIterator(Iterator):
78
+ def add(self, e: Any) -> None: ...
79
+ def hasNext(self) -> bool: ...
80
+ def hasPrevious(self) -> bool: ...
81
+ def next(self) -> Any: ...
82
+ def nextIndex(self) -> int: ...
83
+ def previous(self) -> Any: ...
84
+ def previousIndex(self) -> int: ...
85
+ def set(self, e: Any) -> None: ...
86
+
87
+ class Map:
88
+ class Entry:
89
+ @staticmethod
90
+ def comparingByKey(cmp: Optional[Comparator] = ...) -> Any: ...
91
+ @staticmethod
92
+ def comparingByValue(cmp: Optional[Comparator] = ...) -> Any: ...
93
+ def getKey(self) -> Any: ...
94
+ def getValue(self) -> Any: ...
95
+ def hashCode(self) -> int: ...
96
+ def setValue(self, value: Any) -> Any: ...
97
+
98
+ def clear(self) -> None: ...
99
+ def compute(self, key: Any, remappingFuntion: BiFunction) -> Any: ...
100
+ def computeIfAbsent(self, key: Any, mappingFuntion: BiFunction) -> Any: ...
101
+ def computeIfPresent(self, key: Any, remappingFuntion: BiFunction) -> Any: ...
102
+ def containsKey(self, key: Object) -> bool: ...
103
+ def containsValue(self, value: Object) -> bool: ...
104
+ @staticmethod
105
+ def copyOf(map: Map) -> Map: ...
106
+ @staticmethod
107
+ def entry(k: Any, v: Any) -> Map.Entry: ...
108
+ def entrySet(self) -> Set[Map.Entry]: ...
109
+ def forEach(self, action: BiFunction) -> None: ...
110
+ def get(self, key: Object) -> Any: ...
111
+ def getOrDefault(self, key: Object, defaultValue: Any) -> Any: ...
112
+ def isEmpty(self) -> bool: ...
113
+ def keySet(self) -> Set[Any]: ...
114
+ def merge(self, key: Any, value: Any, remappingFunction: BiFunction) -> Any: ...
115
+ @staticmethod
116
+ def of(*args: Any) -> Map: ...
117
+ @staticmethod
118
+ def ofEntries(*entries: Map.Entry) -> Map: ...
119
+ def put(self, key: Any, value: Any) -> Any: ...
120
+ def putAll(self, m: Mapping[Any, Any]) -> None: ...
121
+ def putIfAbsent(self, key: Any, value: Any) -> Any: ...
122
+ def remove(self, key: Object) -> Any: ...
123
+ def replace(self, *args: Any) -> Union[Any, bool]: ...
124
+ def replaceAll(self, function: BiFunction) -> None: ...
125
+ def size(self) -> int: ...
126
+ def values(self) -> Collection: ...
127
+
128
+ class Spliterator:
129
+ CONCURRENT: int
130
+ DISTINCT: int
131
+ IMMUTABLE: int
132
+ NONNULL: int
133
+ ORDERED: int
134
+ SIZED: int
135
+ SORTED: int
136
+ SUBSIZED: int
137
+ def characteristics(self) -> int: ...
138
+ def estimateSize(self) -> long: ...
139
+ def forEachRemaining(self, action: Consumer) -> None: ...
140
+ def getComparator(self) -> Comparator: ...
141
+ def getExactSizeIfKnown(self) -> long: ...
142
+ def hasCharacteristics(self, characteristics: int) -> bool: ...
143
+ def tryAdvance(self, action: Consumer) -> bool: ...
144
+ def trySplit(self) -> Spliterator: ...
145
+
146
+ class Stream:
147
+ class Builder(Consumer):
148
+ def accept(self, t: Any) -> None: ...
149
+ def add(self, t: Any) -> Stream.Builder: ...
150
+ def build(self) -> Stream: ...
151
+
152
+ @staticmethod
153
+ def builder() -> Builder: ...
154
+ @staticmethod
155
+ def concat(a: Stream, b: Stream) -> Stream: ...
156
+ @staticmethod
157
+ def empty() -> Stream: ...
158
+ @staticmethod
159
+ def generate(s: Supplier) -> Stream: ...
160
+ @staticmethod
161
+ def iterate(*args: Any) -> Stream: ...
162
+ @staticmethod
163
+ def of(*args: Any) -> Stream: ...
164
+ @staticmethod
165
+ def ofNullable(t: Any) -> Stream: ...
166
+
167
+ class Arrays(Object):
168
+ @staticmethod
169
+ def asList(a: Any) -> List[Any]: ...
170
+ @staticmethod
171
+ def binarySearch(*args: Any, **kwargs: Any) -> int: ...
172
+ @staticmethod
173
+ def compare(*args: Any, **kwargs: Any) -> int: ...
174
+ @staticmethod
175
+ def compareUnsigned(*args: Any, **kwargs: Any) -> int: ...
176
+ @staticmethod
177
+ def copyOf(
178
+ original: List[Any], newLength: int, newType: Optional[Class] = ...
179
+ ) -> List[Any]: ...
180
+ @staticmethod
181
+ def copyOfRange(
182
+ original: List[Any], from_: int, to: int, newType: Optional[Class] = ...
183
+ ) -> List[Any]: ...
184
+ @staticmethod
185
+ def deepEquals(a1: List[Object], a2: List[Object]) -> bool: ...
186
+ @staticmethod
187
+ def equals(*args: Any, **kwargs: Any) -> bool: ...
188
+ @staticmethod
189
+ def fill(a: List[Any], *args: Any) -> None: ...
190
+ @staticmethod
191
+ def mismatch(*args: Any, **kwargs: Any) -> int: ...
192
+ @staticmethod
193
+ def parallelPrefix(*args: Any, **kwargs: Any) -> None: ...
194
+ @staticmethod
195
+ def parallelSetAll(*args: Any, **kwargs: Any) -> None: ...
196
+ @staticmethod
197
+ def parallelSort(*args: Any, **kwargs: Any) -> None: ...
198
+ @staticmethod
199
+ def setAll(*args: Any, **kwargs: Any) -> None: ...
200
+ @staticmethod
201
+ def sort(*args: Any, **kwargs: Any) -> None: ...
202
+ @staticmethod
203
+ def spliterator(
204
+ array: Iterable[Any],
205
+ startInclusive: Optional[int] = ...,
206
+ endExclusive: Optional[int] = ...,
207
+ ) -> Spliterator: ...
208
+ @staticmethod
209
+ def stream(
210
+ array: Iterable[Any],
211
+ startInclusive: Optional[int] = ...,
212
+ endExclusive: Optional[int] = ...,
213
+ ) -> Stream: ...
214
+
215
+ class AbstractCollection(Object, Collection):
216
+ def add(self, e: Any) -> bool: ...
217
+ def addAll(self, c: Collection) -> bool: ...
218
+ def clear(self) -> None: ...
219
+ def contains(self, o: Object) -> bool: ...
220
+ def containsAll(self, c: Collection) -> bool: ...
221
+ def isEmpty(self) -> bool: ...
222
+ def iterator(self) -> Iterator: ...
223
+ def remove(self, o: Object) -> bool: ...
224
+ def removeAll(self, c: Collection) -> bool: ...
225
+ def retainAll(self, v: Collection) -> bool: ...
226
+ def size(self) -> int: ...
227
+
228
+ class AbstractList(AbstractCollection):
229
+ def indexOf(self, o: Object) -> int: ...
230
+ def lastIndexOf(self, o: Object) -> int: ...
231
+ def listIterator(self, index: Optional[int] = ...) -> ListIterator: ...
232
+ def set(self, index: int, element: Any) -> Any: ...
233
+ def subList(self, fromIndex: int, toIndex: int) -> List[Any]: ...
234
+
235
+ class AbstractMap(Object, Map):
236
+ def clear(self) -> None: ...
237
+ def containsKey(self, key: Object) -> bool: ...
238
+ def containsValue(self, value: Object) -> bool: ...
239
+ def entrySet(self) -> Set[Map.Entry]: ...
240
+ def get(self, key: Object) -> Any: ...
241
+ def isEmpty(self) -> bool: ...
242
+ def keySet(self) -> Set[Any]: ...
243
+ def put(self, key: Any, value: Any) -> Any: ...
244
+ def putAll(self, m: Mapping[Any, Any]) -> None: ...
245
+ def remove(self, key: Object) -> Any: ...
246
+ def size(self) -> int: ...
247
+ def values(self) -> Collection: ...
248
+
249
+ class ArrayList(AbstractList):
250
+ def __init__(self, *args: Any) -> None: ...
251
+ def ensureCapacity(self, minCapacity: int) -> None: ...
252
+ def get(self, index: int) -> Any: ...
253
+ def trimToSize(self) -> None: ...
254
+
255
+ class Base64(Object):
256
+ class Decoder(Object):
257
+ def decode(
258
+ self,
259
+ arg: Union[str, unicode, ByteBuffer, List[int]],
260
+ dst: Optional[List[int]] = ...,
261
+ ) -> Union[ByteBuffer, int, List[int]]: ...
262
+ def wrap(self, is_: InputStream) -> InputStream: ...
263
+
264
+ class Encoder(Object):
265
+ def encode(
266
+ self, arg: Union[ByteBuffer, List[int]], dst: Optional[List[int]] = ...
267
+ ) -> Union[ByteBuffer, int, List[int]]: ...
268
+ def encodeToString(self, src: List[int]) -> Union[str, unicode]: ...
269
+ def withoutPadding(self) -> Base64.Encoder: ...
270
+ def wrap(self, os: OutputStream) -> OutputStream: ...
271
+
272
+ @staticmethod
273
+ def getDecoder() -> Base64.Decoder: ...
274
+ @staticmethod
275
+ def getEncoder() -> Base64.Encoder: ...
276
+ @staticmethod
277
+ def getMimeDecoder() -> Base64.Decoder: ...
278
+ @staticmethod
279
+ def getMimeEncoder(
280
+ lineLength: Optional[int] = ..., lineSeparator: Optional[List[int]] = ...
281
+ ) -> Base64.Encoder: ...
282
+ @staticmethod
283
+ def getUrlDecoder() -> Base64.Decoder: ...
284
+ @staticmethod
285
+ def getUrlEncoder() -> Base64.Encoder: ...
286
+
287
+ class Calendar(Object):
288
+ ALL_STYLES: int
289
+ AM: int
290
+ AM_PM: int
291
+ APRIL: int
292
+ AUGUST: int
293
+ DATE: int
294
+ DAY_OF_MONTH: int
295
+ DAY_OF_WEEK: int
296
+ DAY_OF_WEEK_IN_MONTH: int
297
+ DAY_OF_YEAR: int
298
+ DECEMBER: int
299
+ DST_OFFSET: int
300
+ ERA: int
301
+ FEBRUARY: int
302
+ FIELD_COUNT: int
303
+ FRIDAY: int
304
+ HOUR: int
305
+ HOUR_OF_DAY: int
306
+ JANUARY: int
307
+ JULY: int
308
+ JUNE: int
309
+ LONG: int
310
+ LONG_FORMAT: int
311
+ LONG_STANDALONE: int
312
+ MARCH: int
313
+ MAY: int
314
+ MILLISECOND: int
315
+ MINUTE: int
316
+ MONDAY: int
317
+ MONTH: int
318
+ NARROW_FORMAT: int
319
+ NARROW_STANDALONE: int
320
+ NOVEMBER: int
321
+ OCTOBER: int
322
+ PM: int
323
+ SATURDAY: int
324
+ SECOND: int
325
+ SEPTEMBER: int
326
+ SHORT: int
327
+ SHORT_FORMAT: int
328
+ SHORT_STANDALONE: int
329
+ SUNDAY: int
330
+ THURSDAY: int
331
+ TUESDAY: int
332
+ UNDECIMBER: int
333
+ WEDNESDAY: int
334
+ WEEK_OF_MONTH: int
335
+ WEEK_OF_YEAR: int
336
+ YEAR: int
337
+ ZONE_OFFSET: int
338
+ def add(self, field: int, amount: int) -> None: ...
339
+ def after(self, when: Object) -> bool: ...
340
+ def before(self, when: Object) -> bool: ...
341
+ def clear(self, field: Optional[int] = ...) -> None: ...
342
+ def clone(self) -> Object: ...
343
+ def compareTo(self, anotherCalendar: Calendar) -> int: ...
344
+ def get(self, field: int) -> int: ...
345
+ def getActualMaximum(self, field: int) -> int: ...
346
+ def getActualMinimum(self, field: int) -> int: ...
347
+ @staticmethod
348
+ def getAvailableCalendarTypes() -> Set[Union[str, unicode]]: ...
349
+ @staticmethod
350
+ def getAvailableLocales() -> List[Locale]: ...
351
+ def getCalendarType(self) -> Union[str, unicode]: ...
352
+ def getDisplayName(
353
+ self, field: int, style: int, locale: Locale
354
+ ) -> Union[str, unicode]: ...
355
+ def getDisplayNames(
356
+ self, field: int, style: int, locale: Locale
357
+ ) -> Dict[Union[str, unicode], int]: ...
358
+ def getFirstDayOfWeek(self) -> int: ...
359
+ def getGreatestMinimum(self, field: int) -> int: ...
360
+ @staticmethod
361
+ def getInstance(*args: Any) -> Calendar: ...
362
+ def getLeastMaximum(self, field: int) -> int: ...
363
+ def getMaximum(self, field: int) -> int: ...
364
+ def getMinimalDaysInFirstWeek(self) -> int: ...
365
+ def getMinimum(self, field: int) -> int: ...
366
+ def getTime(self) -> Date: ...
367
+ def getTimeInMillis(self) -> long: ...
368
+ def getTimeZone(self) -> TimeZone: ...
369
+ def getWeeksInWeekYear(self) -> int: ...
370
+ def getWeekYear(self) -> int: ...
371
+ def isLenient(self) -> bool: ...
372
+ def isSet(self, field: int) -> bool: ...
373
+ def isWeekDateSUpported(self) -> bool: ...
374
+ def roll(self, field: int, amount: int) -> None: ...
375
+ def set(self, *args: int) -> None: ...
376
+ def setFirstDayOfWeek(self, value: int) -> None: ...
377
+ def setLenient(self, lenient: bool) -> None: ...
378
+ def setMinimalDaysInFirstWeek(self, value: int) -> None: ...
379
+ def setTime(self, date: Date) -> None: ...
380
+ def setTimeInMillis(self, millis: long) -> None: ...
381
+ def setTimeZone(self, value: TimeZone) -> None: ...
382
+ def setWeekDate(self, weekYear: int, weekOfYear: int, dayOfWeek: int) -> None: ...
383
+ def toInstant(self) -> Instant: ...
384
+
385
+ class ConcurrentModificationException(RuntimeException):
386
+ def __init__(
387
+ self, message: Optional[str] = ..., cause: Optional[Throwable] = ...
388
+ ) -> None: ...
389
+
390
+ class Currency(Object):
391
+ @staticmethod
392
+ def getAvailableCurrencies() -> Set[Currency]: ...
393
+ def getCurrencyCode(self) -> Union[str, unicode]: ...
394
+ def getDisplayName(self, locale: Optional[Locale] = ...) -> Union[str, unicode]: ...
395
+ @staticmethod
396
+ def getInstance(arg: Union[str, unicode, Locale]) -> Currency: ...
397
+ def getNumericCode(self) -> int: ...
398
+ def getNumericCodeAsString(self) -> Union[str, unicode]: ...
399
+ def getSymbol(self, locale: Optional[Locale] = ...) -> Union[str, unicode]: ...
400
+
401
+ class Date(Object):
402
+ def __init__(self, date: Optional[long] = ...) -> None: ...
403
+ def after(self, when: Date) -> bool: ...
404
+ def before(self, when: Date) -> bool: ...
405
+ def compareTo(self, anotherDate: Date) -> int: ...
406
+ def getTime(self) -> long: ...
407
+ def setTime(self, time: long) -> None: ...
408
+
409
+ class Dictionary(Object):
410
+ def __init__(self) -> None: ...
411
+ def elements(self) -> Enumeration: ...
412
+ def get(self, key: Object) -> Any: ...
413
+ def isEmpty(self) -> bool: ...
414
+ def keys(self) -> Enumeration: ...
415
+ def put(self, key: Any, value: Any) -> Any: ...
416
+ def remove(self, key: Object) -> Any: ...
417
+ def size(self) -> int: ...
418
+
419
+ class EventObject(Object):
420
+ def __init__(self, source: Object) -> None: ...
421
+ def getSource(self) -> Object: ...
422
+
423
+ class GregorianCalendar(Calendar):
424
+ AD: int
425
+ BC: int
426
+ def __init__(self, *args: Any) -> None: ...
427
+ def getGregorianChange(self) -> Date: ...
428
+ def isLeapYear(self, year: int) -> bool: ...
429
+ def setGregorianChange(self, date: Date) -> None: ...
430
+ def toZonedDatetime(self) -> ZonedDateTime: ...
431
+
432
+ class HashMap(AbstractMap, Map):
433
+ def __init__(self, *args: Any) -> None: ...
434
+ def entrySet(self) -> Set[Map.Entry]: ...
435
+
436
+ class Hashtable(Dictionary, Map):
437
+ def __init__(self, *args: Any) -> None: ...
438
+ def clear(self) -> None: ...
439
+ def clone(self) -> Object: ...
440
+ def contains(self, value: Object) -> bool: ...
441
+ def containsKey(self, key: Object) -> bool: ...
442
+ def containsValue(self, value: Object) -> bool: ...
443
+ def elements(self) -> Enumeration: ...
444
+ def entrySet(self) -> Set[Map.Entry]: ...
445
+ def get(self, key: Object) -> Any: ...
446
+ def isEmpty(self) -> bool: ...
447
+ def keySet(self) -> Set[Any]: ...
448
+ def keys(self) -> Enumeration: ...
449
+ def put(self, key: Any, value: Any) -> Any: ...
450
+ def putAll(self, m: Mapping[Any, Any]) -> None: ...
451
+ def remove(self, key: Object) -> Any: ...
452
+ def size(self) -> int: ...
453
+ def values(self) -> Collection: ...
454
+
455
+ class Locale(Object):
456
+ country: Optional[str]
457
+ language: str
458
+ variant: Optional[str]
459
+ CANADA: Locale
460
+ CANADA_FRENCH: Locale
461
+ CHINA: Locale
462
+ CHINESE: Locale
463
+ ENGLISH: Locale
464
+ FRANCE: Locale
465
+ FRENCH: Locale
466
+ GERMAN: Locale
467
+ GERMANY: Locale
468
+ ITALIAN: Locale
469
+ ITALY: Locale
470
+ JAPAN: Locale
471
+ JAPANESE: Locale
472
+ KOREA: Locale
473
+ KOREAN: Locale
474
+ PRC: Locale
475
+ SIMPLIFIED_CHINESE: Locale
476
+ TAIWAN: Locale
477
+ TRADITIONAL_CHINESE: Locale
478
+ UK: Locale
479
+ US: Locale
480
+ def __init__(
481
+ self, language: str, country: Optional[str] = ..., variant: Optional[str] = ...
482
+ ) -> None: ...
483
+
484
+ class Properties(Hashtable):
485
+ def __init__(self, *args: Any) -> None: ...
486
+
487
+ class TimeZone(Object):
488
+ LONG: int
489
+ SHORT: int
490
+ def __init__(self) -> None: ...
491
+ def clone(self) -> Object: ...
492
+ @staticmethod
493
+ def getAvailableIDs(
494
+ rawOffset: Optional[int] = ...,
495
+ ) -> List[Union[str, unicode]]: ...
496
+ @staticmethod
497
+ def getDefault() -> TimeZone: ...
498
+ def getDisplayName(self, *args: Any) -> Union[str, unicode]: ...
499
+ def getDSTSavings(self) -> int: ...
500
+ def getID(self) -> Union[str, unicode]: ...
501
+ def getOffset(self, *args: Any) -> int: ...
502
+ def getRawOffset(self) -> int: ...
503
+ @staticmethod
504
+ def getTimeZone(arg: Union[str, unicode, ZoneId]) -> TimeZone: ...
505
+ def hasSameRules(self, other: TimeZone) -> bool: ...
506
+ def isDaylightTime(self, date: Date) -> bool: ...
507
+ def observesDaylightTime(self) -> bool: ...
508
+ @staticmethod
509
+ def setDefault(zone: TimeZone) -> None: ...
510
+ def setID(self, ID: Union[str, unicode]) -> None: ...
511
+ def setRawOffset(self, offsetMillis: int) -> None: ...
512
+ def toZoneId(self) -> ZoneId: ...
513
+ def useDaylightTime(self) -> bool: ...
514
+
515
+ class UUID(Object):
516
+ def __init__(self, mostSigBits: long, leastSigBits: long) -> None: ...
517
+ def clockSequence(self) -> int: ...
518
+ def compareTo(self, val: UUID) -> int: ...
519
+ @staticmethod
520
+ def fromString(name: Union[str, unicode]) -> UUID: ...
521
+ def getLeastSignificantBits(self) -> long: ...
522
+ def getMostSignificantBits(self) -> long: ...
523
+ @staticmethod
524
+ def nameUUIDFromBytes(name: bytearray) -> UUID: ...
525
+ def node(self) -> long: ...
526
+ @staticmethod
527
+ def randomUUID() -> UUID: ...
528
+ def timestamp(self) -> long: ...
529
+ def variant(self) -> int: ...
530
+ def version(self) -> int: ...