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,147 @@
1
+ __all__ = [
2
+ "CompletableFuture",
3
+ "Delayed",
4
+ "Executor",
5
+ "Future",
6
+ "ScheduledFuture",
7
+ "TimeUnit",
8
+ ]
9
+
10
+ from typing import Any, List, Optional
11
+
12
+ from java.lang import Comparable, Enum, Object, Runnable, Thread
13
+ from java.time.temporal import ChronoUnit
14
+
15
+
16
+ class Delayed(Comparable):
17
+ def compareTo(self, o):
18
+ # type: (Any) -> int
19
+ raise NotImplementedError
20
+
21
+ def getDelay(self, unit):
22
+ # type: (TimeUnit) -> long
23
+ raise NotImplementedError
24
+
25
+
26
+ class Executor(object):
27
+ def execute(self, command):
28
+ # type: (Runnable) -> None
29
+ raise NotImplementedError
30
+
31
+
32
+ class Future(object):
33
+ def cancel(self, mayInterruptIfRunning):
34
+ # type: (bool) -> bool
35
+ raise NotImplementedError
36
+
37
+ def get(self, timeout=None, unit=None):
38
+ # type: (Optional[long], Optional[TimeUnit]) -> Any
39
+ raise NotImplementedError
40
+
41
+ def isCancelled(self):
42
+ # type: () -> bool
43
+ raise NotImplementedError
44
+
45
+ def isDone(self):
46
+ # type: () -> bool
47
+ raise NotImplementedError
48
+
49
+
50
+ class ScheduledFuture(Delayed, Future):
51
+ def cancel(self, mayInterruptIfRunning):
52
+ # type: (bool) -> bool
53
+ raise NotImplementedError
54
+
55
+ def compareTo(self, o):
56
+ # type: (Any) -> int
57
+ raise NotImplementedError
58
+
59
+ def get(self, timeout=None, unit=None):
60
+ # type: (Optional[long], Optional[TimeUnit]) -> Any
61
+ raise NotImplementedError
62
+
63
+ def getDelay(self, unit):
64
+ # type: (TimeUnit) -> long
65
+ raise NotImplementedError
66
+
67
+ def isCancelled(self):
68
+ # type: () -> bool
69
+ raise NotImplementedError
70
+
71
+ def isDone(self):
72
+ # type: () -> bool
73
+ raise NotImplementedError
74
+
75
+
76
+ class CompletableFuture(Object):
77
+ def __init__(self):
78
+ # type: () -> None
79
+ super(CompletableFuture, self).__init__()
80
+
81
+
82
+ class TimeUnit(Enum):
83
+ DAYS = None # type: TimeUnit
84
+ HOURS = None # type: TimeUnit
85
+ MICROSECONDS = None # type: TimeUnit
86
+ MILLISECONDS = None # type: TimeUnit
87
+ MINUTES = None # type: TimeUnit
88
+ NANOSECONDS = None # type: TimeUnit
89
+ SECONDS = None # type: TimeUnit
90
+
91
+ def convert(self, *args):
92
+ # type: (*Any) -> long
93
+ pass
94
+
95
+ @staticmethod
96
+ def of(chronoUnit):
97
+ # type: (ChronoUnit) -> TimeUnit
98
+ pass
99
+
100
+ def sleep(self, timeout):
101
+ # type: (long) -> None
102
+ pass
103
+
104
+ def timedJoin(self, thread, timeout):
105
+ # type: (Thread, long) -> None
106
+ pass
107
+
108
+ def timedWait(self, obj, timeout):
109
+ # type: (Object, long) -> None
110
+ pass
111
+
112
+ def toChronoUnit(self):
113
+ # type: () -> ChronoUnit
114
+ pass
115
+
116
+ def toDays(self, duration):
117
+ # type: (long) -> long
118
+ pass
119
+
120
+ def toHours(self, duration):
121
+ # type: (long) -> long
122
+ pass
123
+
124
+ def toMicros(self, duration):
125
+ # type: (long) -> long
126
+ pass
127
+
128
+ def toMillis(self, duration):
129
+ # type: (long) -> long
130
+ pass
131
+
132
+ def toMinutes(self, duration):
133
+ # type: (long) -> long
134
+ pass
135
+
136
+ def toNanos(self, duration):
137
+ # type: (long) -> long
138
+ pass
139
+
140
+ def toSeconds(self, duration):
141
+ # type: (long) -> long
142
+ pass
143
+
144
+ @staticmethod
145
+ def values():
146
+ # type: () -> List[TimeUnit]
147
+ pass
@@ -0,0 +1,131 @@
1
+ __all__ = [
2
+ "BiConsumer",
3
+ "BiFunction",
4
+ "BiPredicate",
5
+ "BinaryOperator",
6
+ "Consumer",
7
+ "Function",
8
+ "Predicate",
9
+ "Supplier",
10
+ "ToDoubleFunction",
11
+ "ToIntFunction",
12
+ "ToLongFunction",
13
+ ]
14
+
15
+ from typing import Any
16
+
17
+ from java.lang import Object
18
+
19
+
20
+ class BiConsumer(object):
21
+ def accept(self, t, u):
22
+ # type: (Any, Any) -> None
23
+ raise NotImplementedError
24
+
25
+ def andThen(self, after):
26
+ # type: (BiConsumer) -> BiConsumer
27
+ pass
28
+
29
+
30
+ class BiFunction(object):
31
+ def andThen(self, after):
32
+ # type: (Function) -> BiFunction
33
+ pass
34
+
35
+ def apply(self, t, u):
36
+ # type: (Any, Any) -> Any
37
+ raise NotImplementedError
38
+
39
+
40
+ class BiPredicate(object):
41
+ def negate(self):
42
+ # type: () -> BiPredicate
43
+ pass
44
+
45
+ def test(self, t, u):
46
+ # type: (Any, Any) -> bool
47
+ return True
48
+
49
+
50
+ class BinaryOperator(BiFunction):
51
+ def apply(self, t, u):
52
+ # type: (Any, Any) -> Any
53
+ raise NotImplementedError
54
+
55
+ @staticmethod
56
+ def maxBy(comparator):
57
+ # type: (Any) -> BinaryOperator
58
+ pass
59
+
60
+ @staticmethod
61
+ def minBy(comparator):
62
+ # type: (Any) -> BinaryOperator
63
+ pass
64
+
65
+
66
+ class Consumer(object):
67
+ def accept(self, t):
68
+ # type: (Any) -> None
69
+ raise NotImplementedError
70
+
71
+ def andThen(self, after):
72
+ # type: (Consumer) -> Consumer
73
+ pass
74
+
75
+
76
+ class Function(object):
77
+ def andThen(self, after):
78
+ # type: (Function) -> Function
79
+ pass
80
+
81
+ def apply(self, t):
82
+ # type: (Any) -> Any
83
+ raise NotImplementedError
84
+
85
+ def compose(self, before):
86
+ # type: (Function) -> Function
87
+ pass
88
+
89
+ @staticmethod
90
+ def identity():
91
+ # type: () -> Function
92
+ pass
93
+
94
+
95
+ class Predicate(object):
96
+ @staticmethod
97
+ def isEqual(targetRef):
98
+ # type: (Object) -> Predicate
99
+ pass
100
+
101
+ def negate(self):
102
+ # type: () -> Predicate
103
+ pass
104
+
105
+ def test(self, t):
106
+ # type: (Any) -> bool
107
+ raise NotImplementedError
108
+
109
+
110
+ class Supplier(object):
111
+ def get(self):
112
+ # type: () -> Any
113
+ raise NotImplementedError
114
+
115
+
116
+ class ToDoubleFunction(object):
117
+ def applyAsDouble(self, value):
118
+ # type: (Any) -> object
119
+ raise NotImplementedError
120
+
121
+
122
+ class ToIntFunction(object):
123
+ def applyAsInt(self, value):
124
+ # type: (Any) -> object
125
+ raise NotImplementedError
126
+
127
+
128
+ class ToLongFunction(object):
129
+ def applyAsLong(self, value):
130
+ # type: (Any) -> object
131
+ raise NotImplementedError
@@ -0,0 +1,197 @@
1
+ __all__ = ["MatchResult", "Matcher", "Pattern"]
2
+
3
+ from typing import Any, List, Optional, Union
4
+
5
+ from java.lang import CharSequence, Object, StringBuffer, StringBuilder
6
+ from java.util.function import Function, Predicate
7
+
8
+
9
+ class MatchResult(object):
10
+ def end(self, group=None):
11
+ # type: (Optional[int]) -> int
12
+ raise NotImplementedError
13
+
14
+ def group(self, group=None):
15
+ # type: (Optional[int]) -> Union[str, unicode]
16
+ raise NotImplementedError
17
+
18
+ def groupCount(self):
19
+ # type: () -> int
20
+ raise NotImplementedError
21
+
22
+ def start(self, group=None):
23
+ # type: (Optional[int]) -> int
24
+ raise NotImplementedError
25
+
26
+
27
+ class Matcher(Object, MatchResult):
28
+ def appendReplacement(
29
+ self,
30
+ sb, # type: Union[StringBuffer, StringBuilder]
31
+ replacement, # type: Union[str, unicode]
32
+ ):
33
+ # type: (...) -> Matcher
34
+ pass
35
+
36
+ def appendTail(
37
+ self,
38
+ sb, # type: Union[StringBuffer, StringBuilder]
39
+ ):
40
+ # type: (...) -> Union[StringBuffer, StringBuilder]
41
+ pass
42
+
43
+ def end(self, group=None):
44
+ # type: (Optional[int]) -> int
45
+ pass
46
+
47
+ def find(self, start=None):
48
+ # type: (Optional[int]) -> bool
49
+ return True
50
+
51
+ def group(self, group=None):
52
+ # type: (Union[int, str, unicode, None]) -> Union[str, unicode]
53
+ pass
54
+
55
+ def groupCount(self):
56
+ # type: () -> int
57
+ pass
58
+
59
+ def hasAnchoringBounds(self):
60
+ # type: () -> bool
61
+ return True
62
+
63
+ def hasTransparentBounds(self):
64
+ # type: () -> bool
65
+ return True
66
+
67
+ def hitEnd(self):
68
+ # type: () -> bool
69
+ return True
70
+
71
+ def lookingAt(self):
72
+ # type: () -> bool
73
+ return True
74
+
75
+ def matches(self):
76
+ # type: () -> bool
77
+ return True
78
+
79
+ def pattern(self):
80
+ # type: () -> Pattern
81
+ pass
82
+
83
+ @staticmethod
84
+ def quoteReplacement(s):
85
+ # type: (Union[str, unicode]) -> Union[str, unicode]
86
+ pass
87
+
88
+ def region(self, start, end):
89
+ # type: (int, int) -> Matcher
90
+ pass
91
+
92
+ def regionEnd(self):
93
+ # type: () -> int
94
+ pass
95
+
96
+ def regionStart(self):
97
+ # type: () -> int
98
+ pass
99
+
100
+ def replaceAll(self, arg):
101
+ # type: (Union[str, unicode, Function]) -> Union[str, unicode]
102
+ pass
103
+
104
+ def replaceFirst(self, arg):
105
+ # type: (Union[str, unicode, Function]) -> Union[str, unicode]
106
+ pass
107
+
108
+ def requireEnd(self):
109
+ # type: () -> bool
110
+ return True
111
+
112
+ def reset(self, input=None):
113
+ # type: (Optional[CharSequence]) -> Matcher
114
+ pass
115
+
116
+ def results(self):
117
+ # type: () -> Any
118
+ pass
119
+
120
+ def start(self, group=None):
121
+ # type: (Optional[int]) -> int
122
+ pass
123
+
124
+ def toMatchResult(self):
125
+ # type: () -> MatchResult
126
+ pass
127
+
128
+ def useAnchoringBounds(self, b):
129
+ # type: (bool) -> Matcher
130
+ pass
131
+
132
+ def usePattern(self, newPattern):
133
+ # type: (Pattern) -> Matcher
134
+ pass
135
+
136
+ def useTransparentBounds(self, b):
137
+ # type: (bool) -> Matcher
138
+ pass
139
+
140
+
141
+ class Pattern(Object):
142
+ CANON_EQ = None # type: int
143
+ CASE_INSENSITIVE = None # type: int
144
+ COMMENTS = None # type: int
145
+ DOTALL = None # type: int
146
+ LITERAL = None # type: int
147
+ MULTILINE = None # type: int
148
+ UNICODE_CASE = None # type: int
149
+ UNICODE_CHARACTER_CLASS = None # type: int
150
+ UNIX_LINES = None # type: int
151
+
152
+ def asMatchPredicate(self):
153
+ # type: () -> Predicate
154
+ pass
155
+
156
+ def asPredicate(self):
157
+ # type: () -> Predicate
158
+ pass
159
+
160
+ @staticmethod
161
+ def compile(regex, flags=None):
162
+ # type: (Union[str, unicode], Optional[int]) -> Pattern
163
+ pass
164
+
165
+ def flags(self):
166
+ # type: () -> int
167
+ pass
168
+
169
+ def matcher(self, input):
170
+ # type: (CharSequence) -> Matcher
171
+ pass
172
+
173
+ @staticmethod
174
+ def matches(regex, input):
175
+ # type: (Union[str, unicode], CharSequence) -> bool
176
+ return True
177
+
178
+ def pattern(self):
179
+ # type: () -> Union[str, unicode]
180
+ pass
181
+
182
+ @staticmethod
183
+ def quote(s):
184
+ # type: (Union[str, unicode]) -> Union[str, unicode]
185
+ pass
186
+
187
+ def split(
188
+ self,
189
+ input, # type: CharSequence
190
+ limit=None, # type: Optional[int]
191
+ ):
192
+ # type: (...) -> List[Union[str, unicode]]
193
+ pass
194
+
195
+ def splitAsStream(self, input):
196
+ # type: (CharSequence) -> Any
197
+ pass
@@ -0,0 +1,128 @@
1
+ __all__ = ["BaseStream", "Collector", "Stream"]
2
+
3
+ from typing import Any, Iterable, Set
4
+
5
+ from java.lang import AutoCloseable, Enum, Runnable
6
+ from java.util import Iterator, Spliterator
7
+ from java.util.function import BiConsumer, BinaryOperator, Consumer, Function, Supplier
8
+
9
+
10
+ class BaseStream(AutoCloseable):
11
+ def close(self):
12
+ # type: () -> None
13
+ raise NotImplementedError
14
+
15
+ def isParallel(self):
16
+ # type: () -> bool
17
+ raise NotImplementedError
18
+
19
+ def iterator(self):
20
+ # type: () -> Iterator
21
+ raise NotImplementedError
22
+
23
+ def onClose(self, closeHandler):
24
+ # type: (Runnable) -> Any
25
+ raise NotImplementedError
26
+
27
+ def parallel(self):
28
+ # type: () -> Any
29
+ raise NotImplementedError
30
+
31
+ def sequential(self):
32
+ # type: () -> Any
33
+ raise NotImplementedError
34
+
35
+ def spliterator(self):
36
+ # type: () -> Spliterator
37
+ raise NotImplementedError
38
+
39
+ def unordered(self):
40
+ # type: () -> Any
41
+ raise NotImplementedError
42
+
43
+
44
+ class Collector(object):
45
+
46
+ class Characteristics(Enum):
47
+ @staticmethod
48
+ def values():
49
+ # type: () -> Iterable[Collector.Characteristics]
50
+ pass
51
+
52
+ def accumulator(self):
53
+ # type: () -> BiConsumer
54
+ pass
55
+
56
+ def characteristic(self):
57
+ # type: () -> Set[Collector.Characteristics]
58
+ pass
59
+
60
+ def combiner(self):
61
+ # type: () -> BinaryOperator
62
+ pass
63
+
64
+ def finisher(self):
65
+ # type: () -> Function
66
+ pass
67
+
68
+ @staticmethod
69
+ def of(*args):
70
+ # type: (*Any) -> Collector
71
+ pass
72
+
73
+ def supplier(self):
74
+ # type: () -> Supplier
75
+ pass
76
+
77
+
78
+ class Stream(BaseStream):
79
+
80
+ class Builder(Consumer):
81
+ def accept(self, t):
82
+ # type: (Any) -> None
83
+ raise NotImplementedError
84
+
85
+ def add(self, t):
86
+ # type: (Any) -> Stream.Builder
87
+ pass
88
+
89
+ def build(self):
90
+ # type: () -> Stream
91
+ raise NotImplementedError
92
+
93
+ @staticmethod
94
+ def builder():
95
+ # type: () -> Stream.Builder
96
+ pass
97
+
98
+ def close(self):
99
+ # type: () -> None
100
+ pass
101
+
102
+ def isParallel(self):
103
+ # type: () -> bool
104
+ return True
105
+
106
+ def iterator(self):
107
+ # type: () -> Iterator
108
+ pass
109
+
110
+ def onClose(self, closeHandler):
111
+ # type: (Runnable) -> Any
112
+ pass
113
+
114
+ def parallel(self):
115
+ # type: () -> Any
116
+ pass
117
+
118
+ def sequential(self):
119
+ # type: () -> Any
120
+ pass
121
+
122
+ def spliterator(self):
123
+ # type: () -> Spliterator
124
+ pass
125
+
126
+ def unordered(self):
127
+ # type: () -> Any
128
+ pass
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025- coatl.dev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.