-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathObjects.php
More file actions
213 lines (195 loc) Β· 7.36 KB
/
Objects.php
File metadata and controls
213 lines (195 loc) Β· 7.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
declare(strict_types=1);
namespace PHPJava\Packages\java\util;
use PHPJava\Core\JavaClass;
use PHPJava\Exceptions\NotImplementedException;
use PHPJava\Packages\java\lang\Object_;
// use PHPJava\Packages\java\util\Comparator;
// use PHPJava\Packages\java\util\function\Supplier;
/**
* The `Objects` class was auto generated.
*
* @parent \PHPJava\Packages\java\lang\Object_
*/
class Objects extends Object_ // implements Comparator, Supplier
{
/**
* Checks if the sub-range from fromIndex (inclusive) to fromIndex + size (exclusive) is within the bounds of range from 0 (inclusive) to length (exclusive).
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#checkFromIndexSize
* @param null|mixed $a
* @param null|mixed $b
* @param null|mixed $c
* @throws NotImplementedException
*/
public static function static_checkFromIndexSize($a = null, $b = null, $c = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Checks if the sub-range from fromIndex (inclusive) to toIndex (exclusive) is within the bounds of range from 0 (inclusive) to length (exclusive).
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#checkFromToIndex
* @param null|mixed $a
* @param null|mixed $b
* @param null|mixed $c
* @throws NotImplementedException
*/
public static function static_checkFromToIndex($a = null, $b = null, $c = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Checks if the index is within the bounds of the range from 0 (inclusive) to length (exclusive).
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#checkIndex
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_checkIndex($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns 0 if the arguments are identical and c.compare(a, b) otherwise.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#compare
* @param null|mixed $a
* @param null|mixed $b
* @param null|mixed $c
* @throws NotImplementedException
*/
public static function static_compare($a = null, $b = null, $c = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns true if the arguments are deeply equal to each other and false otherwise.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#deepEquals
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_deepEquals($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns true if the arguments are equal to each other and false otherwise.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#equals
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_equals($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Generates a hash code for a sequence of input values.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#hash
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_hash($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the hash code of a non-null argument and 0 for a null argument.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Objects.html#hashCode(java.lang.Object)
* @param null|mixed $a
*/
public static function static_hashCode($a = null)
{
if ($a === null) {
return 0;
}
if ($a instanceof JavaClass) {
return $a
->getInvoker()
->getDynamic()
->getMethods()
->call('hashCode');
}
return $a->hashCode();
}
/**
* Returns true if the provided reference is null otherwise returns false.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#isNull
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_isNull($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns true if the provided reference is non-null otherwise returns false.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#nonNull
* @param null|mixed $a
* @throws NotImplementedException
*/
public static function static_nonNull($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Checks that the specified object reference is not null.
* Checks that the specified object reference is not null and throws a customized NullPointerException if it is.
* Checks that the specified object reference is not null and throws a customized NullPointerException if it is.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#requireNonNull
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_requireNonNull($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the first argument if it is non-null and otherwise returns the non-null second argument.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#requireNonNullElse
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_requireNonNullElse($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the first argument if it is non-null and otherwise returns the non-null value of supplier.get().
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#requireNonNullElseGet
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_requireNonNullElseGet($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the result of calling toString for a non- null argument and "null" for a null argument.
* Returns the result of calling toString on the first argument if the first argument is not null and returns the second argument otherwise.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/package-summary.html#toString
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function static_toString($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
}