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
java/text/__init__.pyi ADDED
@@ -0,0 +1,211 @@
1
+ from typing import Any, Dict, List, Optional, Set, Union
2
+
3
+ from java.lang import Number, Object, StringBuffer
4
+ from java.math import RoundingMode
5
+ from java.util import Calendar, Currency, Date, Locale, TimeZone
6
+
7
+ class CharacterIterator:
8
+ DONE: str
9
+ def clone(self) -> str: ...
10
+ def current(self) -> str: ...
11
+ def first(self) -> str: ...
12
+ def getBeginIndex(self) -> int: ...
13
+ def getEndIndex(self) -> int: ...
14
+ def getIndex(self) -> int: ...
15
+ def last(self) -> str: ...
16
+ def next(self) -> str: ...
17
+ def previous(self) -> str: ...
18
+ def setIndex(self, position: int) -> str: ...
19
+
20
+ class AttributedCharacterIterator(CharacterIterator):
21
+ class Attribute(Object):
22
+ INPUT_METHOD_SEGMENT: AttributedCharacterIterator.Attribute
23
+ LANGUAGE: AttributedCharacterIterator.Attribute
24
+ READING: AttributedCharacterIterator.Attribute
25
+
26
+ def clone(self) -> str: ...
27
+ def current(self) -> str: ...
28
+ def first(self) -> str: ...
29
+ def getAllAttributeKeys(self) -> Set[AttributedCharacterIterator.Attribute]: ...
30
+ def getAttribute(
31
+ self, attribute: AttributedCharacterIterator.Attribute
32
+ ) -> Object: ...
33
+ def getAttributes(self) -> Dict[AttributedCharacterIterator.Attribute, Object]: ...
34
+ def getBeginIndex(self) -> int: ...
35
+ def getEndIndex(self) -> int: ...
36
+ def getIndex(self) -> int: ...
37
+ def last(self) -> str: ...
38
+ def next(self) -> str: ...
39
+ def previous(self) -> str: ...
40
+ def setIndex(self, position: int) -> str: ...
41
+
42
+ class FieldPosition(Object):
43
+ def __init__(self, *args: Any) -> None: ...
44
+ def getBeginIndex(self) -> int: ...
45
+ def getEndIndex(self) -> int: ...
46
+ def getField(self) -> Any: ...
47
+ def getFieldAttribute(self) -> Format.Field: ...
48
+ def setBeginIndex(self, bi: int) -> None: ...
49
+ def setEndIndex(self, ei: int) -> None: ...
50
+
51
+ class Format(Object):
52
+ class Field(AttributedCharacterIterator.Attribute): ...
53
+
54
+ def clone(self) -> Object: ...
55
+ def formatToCharacterIterator(self, obj: Object) -> AttributedCharacterIterator: ...
56
+ def parseObject(
57
+ self, source: Union[str, unicode], pos: Optional[ParsePosition] = ...
58
+ ) -> Object: ...
59
+
60
+ class DateFormat(Format):
61
+ AM_PM_FIELD: int
62
+ DATE_FIELD: int
63
+ DAY_OF_WEEK_FIELD: int
64
+ DAY_OF_WEEK_IN_MONTH_FIELD: int
65
+ DAY_OF_YEAR_FIELD: int
66
+ DEFAULT: int
67
+ ERA_FIELD: int
68
+ FULL: int
69
+ HOUR_OF_DAY0_FIELD: int
70
+ HOUR_OF_DAY1_FIELD: int
71
+ HOUR0_FIELD: int
72
+ HOUR1_FIELD: int
73
+ LONG: int
74
+ MEDIUM: int
75
+ MILLISECOND_FIELD: int
76
+ MONTH_FIELD: int
77
+ SECOND_FIELD: int
78
+ SHORT: int
79
+ TIMEZONE_FIELD: int
80
+ WEEK_OF_MONTH_FIELD: int
81
+ WEEK_OF_YEAR_FIELD: int
82
+ YEAR_FIELD: int
83
+ def format(
84
+ self,
85
+ date: Union[Date, Object],
86
+ toAppendTo: Optional[StringBuffer] = ...,
87
+ pos: Optional[FieldPosition] = ...,
88
+ ) -> Union[str, unicode, StringBuffer]: ...
89
+ @staticmethod
90
+ def getAvailableLocales() -> List[Locale]: ...
91
+ def getCalendar(self) -> Calendar: ...
92
+ @staticmethod
93
+ def getDateInstance(
94
+ style: Optional[int] = ..., aLocale: Optional[Locale] = ...
95
+ ) -> DateFormat: ...
96
+ @staticmethod
97
+ def getDateTimeInstance() -> DateFormat: ...
98
+ @staticmethod
99
+ def getInstance() -> DateFormat: ...
100
+ def getNumberFormat(self) -> NumberFormat: ...
101
+ @staticmethod
102
+ def getTimeInstance(style: int, aLocale: Optional[Locale] = ...) -> DateFormat: ...
103
+ def getTimeZone(self) -> TimeZone: ...
104
+ def isLenient(self) -> bool: ...
105
+ def parse(self, source: Union[str, unicode]) -> Date: ...
106
+ def setCalendar(self, newCalendar: Calendar) -> None: ...
107
+ def setLenient(self, lenient: bool) -> None: ...
108
+ def setNumberFormat(self, newNumberFormat: NumberFormat) -> None: ...
109
+ def setTimeZone(self, zone: TimeZone) -> None: ...
110
+
111
+ class DateFormatSymbols(Object):
112
+ def __init__(self, locale: Optional[Locale] = ...) -> None: ...
113
+ def clone(self) -> Object: ...
114
+ def getAmPmStrings(self) -> List[Union[str, unicode]]: ...
115
+ @staticmethod
116
+ def getAvailableLocales() -> List[Locale]: ...
117
+ def getEras(self) -> List[Union[str, unicode]]: ...
118
+ @staticmethod
119
+ def getInstance(locale: Optional[Locale] = ...) -> DateFormatSymbols: ...
120
+ def getLocalPatternChars(self) -> Union[str, unicode]: ...
121
+ def getMonths(self) -> List[Union[str, unicode]]: ...
122
+ def getShortMonths(self) -> List[Union[str, unicode]]: ...
123
+ def getShortWeekdays(self) -> List[Union[str, unicode]]: ...
124
+ def getWeekdays(self) -> List[Union[str, unicode]]: ...
125
+ def getZoneStrings(self) -> List[List[Union[str, unicode]]]: ...
126
+ def setAmPmStrings(self, newAmpms: List[Union[str, unicode]]) -> None: ...
127
+ def setEras(self, newEras: List[Union[str, unicode]]) -> None: ...
128
+ def setLocalPatternChars(
129
+ self, newLocalPatternChars: Union[str, unicode]
130
+ ) -> None: ...
131
+ def setMonths(self, newMonths: List[Union[str, unicode]]) -> None: ...
132
+ def setShortMonths(self, newShortMonths: List[Union[str, unicode]]) -> None: ...
133
+ def setShortWeekdays(self, newShortWeekdays: List[Union[str, unicode]]) -> None: ...
134
+ def setWeekdays(self, newWeekdays: List[Union[str, unicode]]) -> None: ...
135
+ def setZoneStrings(
136
+ self, newZoneStrings: List[List[Union[str, unicode]]]
137
+ ) -> None: ...
138
+
139
+ class NumberFormat(Format):
140
+ class Field(Format.Field):
141
+ CURRENCY: NumberFormat.Field
142
+ DECIMAL_SEPARATOR: NumberFormat.Field
143
+ EXPONENT: NumberFormat.Field
144
+ EXPONENT_SIGN: NumberFormat.Field
145
+ EXPONENT_SYMBOL: NumberFormat.Field
146
+ FRACTION: NumberFormat.Field
147
+ GROUPING_SEPARATOR: NumberFormat.Field
148
+ INTEGER: NumberFormat.Field
149
+ PERCENT: NumberFormat.Field
150
+ PERMILLE: NumberFormat.Field
151
+ SIGN: NumberFormat.Field
152
+
153
+ FRACTION_FIELD: int
154
+ INTEGER_FIELD: int
155
+ def format(
156
+ self,
157
+ number: Union[float, long, Object],
158
+ toAppendTo: Optional[StringBuffer] = ...,
159
+ pos: Optional[FieldPosition] = ...,
160
+ ) -> Union[str, unicode, StringBuffer]: ...
161
+ @staticmethod
162
+ def getAvailableLocales() -> List[Locale]: ...
163
+ def getCurrency(self) -> Currency: ...
164
+ @staticmethod
165
+ def getCurrencyInstance(inLocale: Optional[Locale] = ...) -> NumberFormat: ...
166
+ @staticmethod
167
+ def getInstance(inLocale: Optional[Locale] = ...) -> NumberFormat: ...
168
+ @staticmethod
169
+ def getIntegerInstance(inLocale: Optional[Locale] = ...) -> NumberFormat: ...
170
+ def getMaximumFractionDigits(self) -> int: ...
171
+ def getMaximumIntegerDigits(self) -> int: ...
172
+ def getMinimumFractionDigits(self) -> int: ...
173
+ def getMinimumIntegerDigits(self) -> int: ...
174
+ @staticmethod
175
+ def getNumberInstance(inLocale: Optional[Locale] = ...) -> NumberFormat: ...
176
+ @staticmethod
177
+ def getPercentInstance(inLocale: Optional[Locale] = ...) -> NumberFormat: ...
178
+ def getRoundingMode(self) -> RoundingMode: ...
179
+ def isGroupingUsed(self) -> bool: ...
180
+ def isParseIntegerOnly(self) -> bool: ...
181
+ def parse(self, source: Union[str, unicode]) -> Number: ...
182
+ def setCurrency(self, currency: Currency) -> None: ...
183
+ def setGroupingUsed(self, newValue: bool) -> None: ...
184
+ def setMaximumFractionDigits(self, newValue: int) -> None: ...
185
+ def setMaximumIntegerDigits(self, newValue: int) -> None: ...
186
+ def setMinimumFractionDigits(self, newValue: int) -> None: ...
187
+ def setMinimumIntegerDigits(self, newValue: int) -> None: ...
188
+ def setParseIntegerOnly(self, value: bool) -> None: ...
189
+ def setRoundingMode(self, roundingMode: RoundingMode) -> None: ...
190
+
191
+ class ParsePosition(Object):
192
+ def __init__(self, index: int) -> None: ...
193
+ def getErrorIndex(self) -> int: ...
194
+ def getIndex(self) -> int: ...
195
+ def setErrorIndex(self, ei: int) -> None: ...
196
+ def setIndex(self, index: int) -> None: ...
197
+
198
+ class SimpleDateFormat(DateFormat):
199
+ def __init__(
200
+ self,
201
+ pattern: Union[str, unicode, None] = ...,
202
+ arg: Union[DateFormatSymbols, Locale, None] = ...,
203
+ ) -> None: ...
204
+ def applyLocalizedPattern(self, pattern: Union[str, unicode]) -> None: ...
205
+ def applyPattern(self, pattern: Union[str, unicode]) -> None: ...
206
+ def get2DigitYearStart(self) -> Date: ...
207
+ def getDateFormatSymbols(self) -> DateFormatSymbols: ...
208
+ def set2DigitYearStart(self, startDate: Date) -> None: ...
209
+ def setDateFormatSymbols(self, newFormatSymbols: DateFormatSymbols) -> None: ...
210
+ def toLocalizedPattern(self) -> Union[str, unicode]: ...
211
+ def toPattern(self) -> Union[str, unicode]: ...
java/time/__init__.pyi ADDED
@@ -0,0 +1,233 @@
1
+ from typing import Any, Dict, List, Optional, Set, Union
2
+
3
+ from java.lang import CharSequence, Comparable, Enum, Object
4
+ from java.time.chrono import ChronoLocalDateTime, ChronoZonedDateTime
5
+ from java.time.format import DateTimeFormatter, TextStyle
6
+ from java.time.temporal import (
7
+ Temporal,
8
+ TemporalAccessor,
9
+ TemporalAdjuster,
10
+ TemporalUnit,
11
+ )
12
+ from java.util import Locale
13
+
14
+ class Clock(Object):
15
+ @staticmethod
16
+ def offset(baseClock: Instant, offsetDuration: ZoneId) -> Clock: ...
17
+ @staticmethod
18
+ def systemDefaultZone() -> Clock: ...
19
+ @staticmethod
20
+ def systemUTC() -> Clock: ...
21
+ @staticmethod
22
+ def tick(baseClock: Clock, tickDuration: Duration) -> Clock: ...
23
+ @staticmethod
24
+ def tickMillis(zone: ZoneId) -> Clock: ...
25
+ @staticmethod
26
+ def tickMinutes(zone: ZoneId) -> Clock: ...
27
+ @staticmethod
28
+ def tickSeconds(zone: ZoneId) -> Clock: ...
29
+
30
+ class DayOfWeek(Enum, TemporalAccessor, TemporalAdjuster):
31
+ FRIDAY: DayOfWeek
32
+ MONDAY: DayOfWeek
33
+ SATURDAY: DayOfWeek
34
+ SUNDAY: DayOfWeek
35
+ THURSDAY: DayOfWeek
36
+ TUESDAY: DayOfWeek
37
+ WEDNESDAY: DayOfWeek
38
+ def getValue(self) -> int: ...
39
+ def minus(self, days: long) -> DayOfWeek: ...
40
+ @staticmethod
41
+ def of(dayOfWeek: int) -> DayOfWeek: ...
42
+ def plus(self, days: long) -> DayOfWeek: ...
43
+ @staticmethod
44
+ def values() -> List[DayOfWeek]: ...
45
+
46
+ class Duration(Object):
47
+ ZERO: Duration
48
+ def toDays(self) -> long: ...
49
+ def toDaysPart(self) -> long: ...
50
+ def toHours(self) -> long: ...
51
+ def toHoursPart(self) -> int: ...
52
+ def toMillis(self) -> long: ...
53
+ def toMillisPart(self) -> int: ...
54
+ def toMinutes(self) -> long: ...
55
+ def toMinutesPart(self) -> int: ...
56
+ def toNanos(self) -> long: ...
57
+ def toNanosPart(self) -> int: ...
58
+ def toSeconds(self) -> long: ...
59
+ def toSecondsPart(self) -> int: ...
60
+
61
+ class Instant(Object):
62
+ EPOCH: Instant
63
+ MAX: Instant
64
+ MIN: Instant
65
+ @staticmethod
66
+ def now(clock: Optional[Clock] = ...) -> Instant: ...
67
+ @staticmethod
68
+ def ofEpochMilli(epochMilli: long) -> Instant: ...
69
+ @staticmethod
70
+ def ofEpochSecond(
71
+ epochSecond: long, nanoAdjustment: Optional[long] = ...
72
+ ) -> Instant: ...
73
+ @staticmethod
74
+ def parse(text: CharSequence) -> Instant: ...
75
+
76
+ class LocalDate(Object, Temporal, TemporalAdjuster, Comparable):
77
+ EPOCH: LocalDate
78
+ MAX: LocalDate
79
+ MIN: LocalDate
80
+ def compareTo(self, o: Any) -> int: ...
81
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
82
+ def atStartOfDay(self, zone: ZoneId) -> LocalDateTime: ...
83
+ def atTime(self, *args: Any) -> Union[LocalDateTime, OffsetDateTime]: ...
84
+ @staticmethod
85
+ def now(clock: Optional[Clock] = ...) -> LocalDate: ...
86
+ @staticmethod
87
+ def of(year: int, month: int, dayOfMonth: int) -> LocalDate: ...
88
+ @staticmethod
89
+ def parse(text: CharSequence) -> LocalDate: ...
90
+
91
+ class LocalDateTime(Object, ChronoLocalDateTime):
92
+ MAX: LocalDateTime
93
+ MIN: LocalDateTime
94
+ def atOffset(self, offset: ZoneOffset) -> OffsetDateTime: ...
95
+ def atZone(self, zone: ZoneId) -> ZonedDateTime: ...
96
+ def toLocalDate(self) -> LocalDate: ...
97
+ def toLocalTime(self) -> LocalTime: ...
98
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
99
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
100
+ def compareTo(self, o: Any) -> int: ...
101
+
102
+ class LocalTime(Object, Temporal, TemporalAdjuster, Comparable):
103
+ MAX: LocalTime
104
+ MIDNIGHT: LocalTime
105
+ MIN: LocalTime
106
+ NOON: LocalTime
107
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
108
+ def atDate(self, date: LocalDate) -> LocalDateTime: ...
109
+ def compareTo(self, o: Any) -> int: ...
110
+ @staticmethod
111
+ def now(clock: Optional[Clock] = ...) -> LocalTime: ...
112
+ @staticmethod
113
+ def of(
114
+ hour: int, minute: int, second: Optional[int] = ..., nano: Optional[int] = ...
115
+ ) -> LocalTime: ...
116
+ @staticmethod
117
+ def parse(text: CharSequence) -> LocalTime: ...
118
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
119
+
120
+ class Month(Enum, TemporalAccessor, TemporalAdjuster):
121
+ JANUARY: Month
122
+ FEBRUARY: Month
123
+ MARCH: Month
124
+ APRIL: Month
125
+ MAY: Month
126
+ JUNE: Month
127
+ JULY: Month
128
+ AUGUST: Month
129
+ SEPTEMBER: Month
130
+ OCTOBER: Month
131
+ NOVEMBER: Month
132
+ DECEMBER: Month
133
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
134
+ def firstDayOfYear(self, leapYear: bool) -> int: ...
135
+ def firstMonthOfQuarter(self) -> Month: ...
136
+ def getDisplayName(
137
+ self, style: TextStyle, locale: Locale
138
+ ) -> Union[str, unicode]: ...
139
+ def getValue(self) -> int: ...
140
+ def length(self, leapYear: bool) -> int: ...
141
+ def maxLength(self) -> int: ...
142
+ def minLength(self) -> int: ...
143
+ def minus(self, months: long) -> Month: ...
144
+ @staticmethod
145
+ def of(month: int) -> Month: ...
146
+ def plus(self, months: long) -> Month: ...
147
+ @staticmethod
148
+ def values() -> List[Month]: ...
149
+
150
+ class OffsetDateTime(Object, Temporal, TemporalAdjuster, Comparable):
151
+ MAX: OffsetDateTime
152
+ MIN: OffsetDateTime
153
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
154
+ def atZoneSameInstant(self, zone: ZoneId) -> ZonedDateTime: ...
155
+ def compareTo(self, o: Any) -> int: ...
156
+ def toLocalDateTime(self) -> LocalDateTime: ...
157
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
158
+
159
+ class ZoneId(Object):
160
+ SHORT_IDS: Dict[Union[str, unicode], Union[str, unicode]]
161
+ @staticmethod
162
+ def getAvailableZoneIds() -> Set[Union[str, unicode]]: ...
163
+ @staticmethod
164
+ def of(
165
+ zoneId: Union[str, unicode],
166
+ aliasMap: Optional[Dict[Union[str, unicode], Union[str, unicode]]] = ...,
167
+ ) -> ZoneId: ...
168
+ @staticmethod
169
+ def ofOffset(prefix: Union[str, unicode], offset: ZoneOffset) -> ZoneId: ...
170
+ @staticmethod
171
+ def systemDefault() -> ZoneId: ...
172
+
173
+ class ZoneOffset(Object):
174
+ MAX: ZoneOffset
175
+ MIN: ZoneOffset
176
+ UTC: ZoneOffset
177
+ @staticmethod
178
+ def of(offsetId: Union[str, unicode]) -> ZoneOffset: ...
179
+ @staticmethod
180
+ def ofHours(hours: int) -> ZoneOffset: ...
181
+ @staticmethod
182
+ def ofHoursMinutes(hours: int, minutes: int) -> ZoneOffset: ...
183
+ @staticmethod
184
+ def ofHoursMinutesSeconds(hours: int, minutes: int, seconds: int) -> ZoneOffset: ...
185
+ @staticmethod
186
+ def ofTotalSeconds(totalSeconds: int) -> ZoneOffset: ...
187
+
188
+ class ZonedDateTime(Object, ChronoZonedDateTime):
189
+ def toLocalDateTime(self) -> LocalDateTime: ...
190
+ def withEarlierOffsetAtOverlap(self) -> ZonedDateTime: ...
191
+ def withLaterOffsetAtOverlap(self) -> ZonedDateTime: ...
192
+ def withZoneSameInstant(self, zone: ZoneId) -> ZonedDateTime: ...
193
+ def withZoneSameLocal(self, zone: ZoneId) -> ZonedDateTime: ...
194
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
195
+ def compareTo(self, o: Any) -> int: ...
196
+ def getDayOfMonth(self) -> int: ...
197
+ def getDayOfWeek(self) -> DayOfWeek: ...
198
+ def getDayOfYear(self) -> int: ...
199
+ def getHour(self) -> int: ...
200
+ def getMinute(self) -> int: ...
201
+ def getMonth(self) -> Month: ...
202
+ def getMonthValue(self) -> int: ...
203
+ def getNano(self) -> int: ...
204
+ def getOffset(self) -> ZoneOffset: ...
205
+ def getSecond(self) -> int: ...
206
+ def getYear(self) -> int: ...
207
+ def getZone(self) -> ZoneId: ...
208
+ def minusDays(self, days: int) -> ZonedDateTime: ...
209
+ def minusHours(self, hours: int) -> ZonedDateTime: ...
210
+ def minusMinutes(self, minutes: int) -> ZonedDateTime: ...
211
+ def minusMonths(self, months: int) -> ZonedDateTime: ...
212
+ def minusNanos(self, nanos: int) -> ZonedDateTime: ...
213
+ def minusSeconds(self, seconds: int) -> ZonedDateTime: ...
214
+ def minusWeeks(self, weeks: int) -> ZonedDateTime: ...
215
+ def minusYears(self, years: int) -> ZonedDateTime: ...
216
+ @staticmethod
217
+ def now(arg: Optional[Union[Clock, ZoneId]] = ...) -> ZonedDateTime: ...
218
+ @staticmethod
219
+ def of(*args: Any) -> ZonedDateTime: ...
220
+ @staticmethod
221
+ def ofInstant(*args: Any) -> ZonedDateTime: ...
222
+ @staticmethod
223
+ def ofLocal(
224
+ localDateTime: LocalDateTime, zone: ZoneId, preferredOffset: ZoneOffset
225
+ ) -> ZonedDateTime: ...
226
+ @staticmethod
227
+ def ofStrict(
228
+ localDateTime: LocalDateTime, offset: ZoneOffset, zone: ZoneId
229
+ ) -> ZonedDateTime: ...
230
+ @staticmethod
231
+ def parse(
232
+ text: CharSequence, formatter: Optional[DateTimeFormatter] = ...
233
+ ) -> ZonedDateTime: ...
@@ -0,0 +1,103 @@
1
+ from typing import Any, Dict, List, Union
2
+
3
+ from java.lang import Comparable, Object
4
+ from java.time import Instant, LocalTime, ZoneId, ZoneOffset
5
+ from java.time.format import DateTimeFormatter, ResolverStyle, TextStyle
6
+ from java.time.temporal import (
7
+ ChronoField,
8
+ Temporal,
9
+ TemporalAccessor,
10
+ TemporalAdjuster,
11
+ TemporalAmount,
12
+ TemporalField,
13
+ TemporalUnit,
14
+ ValueRange,
15
+ )
16
+ from java.util import Comparator, Locale
17
+
18
+ class ChronoLocalDate(Temporal, TemporalAdjuster, Comparable):
19
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
20
+ def atTime(self, localTime: LocalTime) -> ChronoLocalDateTime: ...
21
+ def compareTo(self, o: ChronoLocalDate) -> int: ...
22
+ def equals(self, obj: Any) -> bool: ...
23
+ def format(self, formatter: DateTimeFormatter) -> Union[str, unicode]: ...
24
+ def getChronology(self) -> Chronology: ...
25
+ def getEra(self) -> Era: ...
26
+ def hashCode(self) -> int: ...
27
+ def isAfter(self, other: ChronoLocalDate) -> bool: ...
28
+ def isBefore(self, other: ChronoLocalDate) -> bool: ...
29
+ def isEqual(self, other: ChronoLocalDate) -> bool: ...
30
+ def isLeapYear(self) -> bool: ...
31
+ def lengthOfMonth(self) -> int: ...
32
+ def lengthOfYear(self) -> int: ...
33
+ @staticmethod
34
+ def timeLineOrder() -> Comparator: ...
35
+ def toEpochDay(self) -> long: ...
36
+ def toString(self) -> Union[str, unicode]: ...
37
+ def until(self, endExclusive: Temporal, unit: TemporalUnit) -> long: ...
38
+
39
+ class ChronoLocalDateTime(Temporal, TemporalAdjuster, Comparable):
40
+ def atZone(self, zone: ZoneId) -> ChronoZonedDateTime: ...
41
+ def toLocalDate(self) -> Any: ...
42
+ def toLocalTime(self) -> LocalTime: ...
43
+ def toString(self) -> Union[str, unicode]: ...
44
+
45
+ class ChronoPeriod(TemporalAmount):
46
+ @staticmethod
47
+ def between(
48
+ startDateInclusive: ChronoLocalDate, endDateExclusive: ChronoLocalDate
49
+ ) -> ChronoPeriod: ...
50
+ def equals(self, obj: Object) -> bool: ...
51
+ def getChronology(self) -> Chronology: ...
52
+ def hashCode(self) -> int: ...
53
+ def isNegative(self) -> bool: ...
54
+ def isZero(self) -> bool: ...
55
+ def minus(self, amountToSubtract: TemporalAmount) -> ChronoPeriod: ...
56
+ def multipliedBy(self, scalar: int) -> ChronoPeriod: ...
57
+ def negated(self) -> ChronoPeriod: ...
58
+ def normalized(self) -> ChronoPeriod: ...
59
+ def plus(self, amountToAdd: TemporalAmount) -> ChronoPeriod: ...
60
+ def toString(self) -> Union[str, unicode]: ...
61
+
62
+ class ChronoZonedDateTime(Temporal, Comparable):
63
+ def format(self, formatter: DateTimeFormatter) -> Union[str, unicode]: ...
64
+ def getChronology(self) -> Chronology: ...
65
+ def getOffset(self) -> ZoneOffset: ...
66
+ def getZone(self) -> ZoneId: ...
67
+ def isAfter(self, other: ChronoZonedDateTime) -> bool: ...
68
+ def isBefore(self, other: ChronoZonedDateTime) -> bool: ...
69
+ def isEqual(self, other: ChronoZonedDateTime) -> bool: ...
70
+ @staticmethod
71
+ def timeLineOrder() -> Comparator: ...
72
+ def toEpochSecond(self) -> long: ...
73
+ def toInstant(self) -> Instant: ...
74
+ def toLocalDate(self) -> Any: ...
75
+ def toLocalDateTime(self) -> ChronoLocalDateTime: ...
76
+ def toLocalTime(self) -> LocalTime: ...
77
+ def withEarlierOffsetAtOverlap(self) -> ChronoZonedDateTime: ...
78
+ def withLaterOffsetAtOverlap(self) -> ChronoZonedDateTime: ...
79
+ def withZoneSameInstant(self, zone: ZoneId) -> ChronoZonedDateTime: ...
80
+ def withZoneSameLocal(self, zone: ZoneId) -> ChronoZonedDateTime: ...
81
+
82
+ class Chronology(Comparable):
83
+ def date(self, *args: Any) -> ChronoLocalDate: ...
84
+ def dateEpochDay(self, epochDay: long) -> ChronoLocalDate: ...
85
+ def dateYearDay(self, prolepticYear: int, dayOfYear: int) -> ChronoLocalDate: ...
86
+ def equals(self, obj: Object) -> bool: ...
87
+ def eraOf(self, eraValue: int) -> Era: ...
88
+ def eras(self) -> List[Era]: ...
89
+ def getCalendarType(self) -> Union[str, unicode]: ...
90
+ def getId(self) -> Union[str, unicode]: ...
91
+ def hashCode(self) -> int: ...
92
+ def isLeapYear(self, prolepticYear: long) -> bool: ...
93
+ def prolepticYear(self, era: Era, yearOfEra: int) -> int: ...
94
+ def range(self, field: ChronoField) -> ValueRange: ...
95
+ def resolveDate(
96
+ self, fieldValues: Dict[TemporalField, long], resolverStyle: ResolverStyle
97
+ ) -> ChronoLocalDate: ...
98
+ def toString(self) -> Union[str, unicode]: ...
99
+
100
+ class Era(TemporalAccessor, TemporalAdjuster):
101
+ def adjustInto(self, temporal: Temporal) -> Temporal: ...
102
+ def getDisplayName(self, style: TextStyle, locale: Locale) -> long: ...
103
+ def getValue(self) -> int: ...
@@ -0,0 +1,44 @@
1
+ from typing import List, Union
2
+
3
+ from java.lang import Appendable, Enum, Object
4
+ from java.time.chrono import Chronology
5
+ from java.time.temporal import TemporalAccessor
6
+
7
+ class DateTimeFormatter(Object):
8
+ BASIC_ISO_DATE: DateTimeFormatter
9
+ ISO_DATE: DateTimeFormatter
10
+ ISO_DATE_TIME: DateTimeFormatter
11
+ ISO_INSTANT: DateTimeFormatter
12
+ ISO_LOCAL_DATE: DateTimeFormatter
13
+ ISO_LOCAL_DATE_TIME: DateTimeFormatter
14
+ ISO_LOCAL_TIME: DateTimeFormatter
15
+ ISO_OFFSET_DATE: DateTimeFormatter
16
+ ISO_OFFSET_DATE_TIME: DateTimeFormatter
17
+ ISO_OFFSET_TIME: DateTimeFormatter
18
+ ISO_ORDINAL_DATE: DateTimeFormatter
19
+ ISO_TIME: DateTimeFormatter
20
+ ISO_WEEK_DATE: DateTimeFormatter
21
+ ISO_ZONED_DATE_TIME: DateTimeFormatter
22
+ RFC_1123_DATE_TIME: DateTimeFormatter
23
+ def format(self, temporal: TemporalAccessor) -> Union[str, unicode]: ...
24
+ def formatTo(self, temporal: TemporalAccessor, appendable: Appendable) -> None: ...
25
+ def getChronology(self) -> Chronology: ...
26
+
27
+ class ResolverStyle(Enum):
28
+ LENIENT: ResolverStyle
29
+ SMART: ResolverStyle
30
+ STRICT: ResolverStyle
31
+ @staticmethod
32
+ def values() -> List[ResolverStyle]: ...
33
+
34
+ class TextStyle(Enum):
35
+ FULL: TextStyle
36
+ FULL_STANDALONE: TextStyle
37
+ NARROW: TextStyle
38
+ NARROW_STANDALONE: TextStyle
39
+ SHORT: TextStyle
40
+ SHORT_STANDALONE: TextStyle
41
+ def asNormal(self) -> TextStyle: ...
42
+ def asStandalone(self) -> TextStyle: ...
43
+ @staticmethod
44
+ def values() -> List[TextStyle]: ...