-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Float.cs
338 lines (323 loc) · 17.5 KB
/
Float.cs
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
/*
* Copyright 2024 MASES s.r.l.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Refer to LICENSE for more information.
*/
/*
* This file is generated by MASES.JNetReflector (ver. 2.5.1.0)
* using android.jar as reference
*/
using MASES.JCOBridge.C2JBridge;
namespace Java.Lang
{
#region Float
public partial class Float : Java.Lang.IComparable<Java.Lang.Float>, Java.Lang.Constant.IConstable, Java.Lang.Constant.IConstantDesc
{
#region Constructors
#endregion
#region Class/Interface conversion operators
/// <summary>
/// Converter from <see cref="Java.Lang.Float"/> to <see cref="Java.Lang.Comparable"/>
/// </summary>
public static implicit operator Java.Lang.Comparable(Java.Lang.Float t) => t.Cast<Java.Lang.Comparable>();
/// <summary>
/// Converter from <see cref="Java.Lang.Float"/> to <see cref="Java.Lang.Constant.Constable"/>
/// </summary>
public static implicit operator Java.Lang.Constant.Constable(Java.Lang.Float t) => t.Cast<Java.Lang.Constant.Constable>();
/// <summary>
/// Converter from <see cref="Java.Lang.Float"/> to <see cref="Java.Lang.Constant.ConstantDesc"/>
/// </summary>
public static implicit operator Java.Lang.Constant.ConstantDesc(Java.Lang.Float t) => t.Cast<Java.Lang.Constant.ConstantDesc>();
#endregion
#region Fields
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#MAX_VALUE"/>
/// </summary>
public static float MAX_VALUE { get { if (!_MAX_VALUEReady) { _MAX_VALUEContent = SGetField<float>(LocalBridgeClazz, "MAX_VALUE"); _MAX_VALUEReady = true; } return _MAX_VALUEContent; } }
private static float _MAX_VALUEContent = default;
private static bool _MAX_VALUEReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#MIN_NORMAL"/>
/// </summary>
public static float MIN_NORMAL { get { if (!_MIN_NORMALReady) { _MIN_NORMALContent = SGetField<float>(LocalBridgeClazz, "MIN_NORMAL"); _MIN_NORMALReady = true; } return _MIN_NORMALContent; } }
private static float _MIN_NORMALContent = default;
private static bool _MIN_NORMALReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#MIN_VALUE"/>
/// </summary>
public static float MIN_VALUE { get { if (!_MIN_VALUEReady) { _MIN_VALUEContent = SGetField<float>(LocalBridgeClazz, "MIN_VALUE"); _MIN_VALUEReady = true; } return _MIN_VALUEContent; } }
private static float _MIN_VALUEContent = default;
private static bool _MIN_VALUEReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#NaN"/>
/// </summary>
public static float NaN { get { if (!_NaNReady) { _NaNContent = SGetField<float>(LocalBridgeClazz, "NaN"); _NaNReady = true; } return _NaNContent; } }
private static float _NaNContent = default;
private static bool _NaNReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#NEGATIVE_INFINITY"/>
/// </summary>
public static float NEGATIVE_INFINITY { get { if (!_NEGATIVE_INFINITYReady) { _NEGATIVE_INFINITYContent = SGetField<float>(LocalBridgeClazz, "NEGATIVE_INFINITY"); _NEGATIVE_INFINITYReady = true; } return _NEGATIVE_INFINITYContent; } }
private static float _NEGATIVE_INFINITYContent = default;
private static bool _NEGATIVE_INFINITYReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#POSITIVE_INFINITY"/>
/// </summary>
public static float POSITIVE_INFINITY { get { if (!_POSITIVE_INFINITYReady) { _POSITIVE_INFINITYContent = SGetField<float>(LocalBridgeClazz, "POSITIVE_INFINITY"); _POSITIVE_INFINITYReady = true; } return _POSITIVE_INFINITYContent; } }
private static float _POSITIVE_INFINITYContent = default;
private static bool _POSITIVE_INFINITYReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#BYTES"/>
/// </summary>
public static int BYTES { get { if (!_BYTESReady) { _BYTESContent = SGetField<int>(LocalBridgeClazz, "BYTES"); _BYTESReady = true; } return _BYTESContent; } }
private static int _BYTESContent = default;
private static bool _BYTESReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#MAX_EXPONENT"/>
/// </summary>
public static int MAX_EXPONENT { get { if (!_MAX_EXPONENTReady) { _MAX_EXPONENTContent = SGetField<int>(LocalBridgeClazz, "MAX_EXPONENT"); _MAX_EXPONENTReady = true; } return _MAX_EXPONENTContent; } }
private static int _MAX_EXPONENTContent = default;
private static bool _MAX_EXPONENTReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#MIN_EXPONENT"/>
/// </summary>
public static int MIN_EXPONENT { get { if (!_MIN_EXPONENTReady) { _MIN_EXPONENTContent = SGetField<int>(LocalBridgeClazz, "MIN_EXPONENT"); _MIN_EXPONENTReady = true; } return _MIN_EXPONENTContent; } }
private static int _MIN_EXPONENTContent = default;
private static bool _MIN_EXPONENTReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#SIZE"/>
/// </summary>
public static int SIZE { get { if (!_SIZEReady) { _SIZEContent = SGetField<int>(LocalBridgeClazz, "SIZE"); _SIZEReady = true; } return _SIZEContent; } }
private static int _SIZEContent = default;
private static bool _SIZEReady = false; // this is used because in case of generics
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#TYPE"/>
/// </summary>
public static Java.Lang.Class TYPE { get { if (!_TYPEReady) { _TYPEContent = SGetField<Java.Lang.Class>(LocalBridgeClazz, "TYPE"); _TYPEReady = true; } return _TYPEContent; } }
private static Java.Lang.Class _TYPEContent = default;
private static bool _TYPEReady = false; // this is used because in case of generics
#endregion
#region Static methods
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#isFinite(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="bool"/></returns>
public static bool IsFinite(float arg0)
{
return SExecuteWithSignature<bool>(LocalBridgeClazz, "isFinite", "(F)Z", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#isInfinite(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="bool"/></returns>
public static bool IsInfinite(float arg0)
{
return SExecuteWithSignature<bool>(LocalBridgeClazz, "isInfinite", "(F)Z", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#isNaN(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="bool"/></returns>
public static bool IsNaN(float arg0)
{
return SExecuteWithSignature<bool>(LocalBridgeClazz, "isNaN", "(F)Z", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#max(float,float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <param name="arg1"><see cref="float"/></param>
/// <returns><see cref="float"/></returns>
public static float Max(float arg0, float arg1)
{
return SExecute<float>(LocalBridgeClazz, "max", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#min(float,float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <param name="arg1"><see cref="float"/></param>
/// <returns><see cref="float"/></returns>
public static float Min(float arg0, float arg1)
{
return SExecute<float>(LocalBridgeClazz, "min", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#parseFloat(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="float"/></returns>
/// <exception cref="Java.Lang.NumberFormatException"/>
public static float ParseFloat(Java.Lang.String arg0)
{
return SExecuteWithSignature<float>(LocalBridgeClazz, "parseFloat", "(Ljava/lang/String;)F", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#sum(float,float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <param name="arg1"><see cref="float"/></param>
/// <returns><see cref="float"/></returns>
public static float Sum(float arg0, float arg1)
{
return SExecute<float>(LocalBridgeClazz, "sum", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#compare(float,float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <param name="arg1"><see cref="float"/></param>
/// <returns><see cref="int"/></returns>
public static int Compare(float arg0, float arg1)
{
return SExecute<int>(LocalBridgeClazz, "compare", arg0, arg1);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#floatToIntBits(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="int"/></returns>
public static int FloatToIntBits(float arg0)
{
return SExecuteWithSignature<int>(LocalBridgeClazz, "floatToIntBits", "(F)I", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#hashCode(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="int"/></returns>
public static int HashCode(float arg0)
{
return SExecuteWithSignature<int>(LocalBridgeClazz, "hashCode", "(F)I", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#valueOf(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="Java.Lang.Float"/></returns>
public static Java.Lang.Float ValueOf(float arg0)
{
return SExecuteWithSignature<Java.Lang.Float>(LocalBridgeClazz, "valueOf", "(F)Ljava/lang/Float;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#valueOf(java.lang.String)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.String"/></param>
/// <returns><see cref="Java.Lang.Float"/></returns>
/// <exception cref="Java.Lang.NumberFormatException"/>
public static Java.Lang.Float ValueOf(Java.Lang.String arg0)
{
return SExecuteWithSignature<Java.Lang.Float>(LocalBridgeClazz, "valueOf", "(Ljava/lang/String;)Ljava/lang/Float;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#toHexString(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="Java.Lang.String"/></returns>
public static Java.Lang.String ToHexString(float arg0)
{
return SExecuteWithSignature<Java.Lang.String>(LocalBridgeClazz, "toHexString", "(F)Ljava/lang/String;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#toString(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="Java.Lang.String"/></returns>
public static Java.Lang.String ToString(float arg0)
{
return SExecuteWithSignature<Java.Lang.String>(LocalBridgeClazz, "toString", "(F)Ljava/lang/String;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#intBitsToFloat(int)"/>
/// </summary>
/// <param name="arg0"><see cref="int"/></param>
/// <returns><see cref="float"/></returns>
public static float IntBitsToFloat(int arg0)
{
return SExecuteWithSignature<float>(LocalBridgeClazz, "intBitsToFloat", "(I)F", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#floatToRawIntBits(float)"/>
/// </summary>
/// <param name="arg0"><see cref="float"/></param>
/// <returns><see cref="int"/></returns>
public static int FloatToRawIntBits(float arg0)
{
return SExecuteWithSignature<int>(LocalBridgeClazz, "floatToRawIntBits", "(F)I", arg0);
}
#endregion
#region Instance methods
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#isInfinite()"/>
/// </summary>
/// <returns><see cref="bool"/></returns>
public bool IsInfinite()
{
return IExecuteWithSignature<bool>("isInfinite", "()Z");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#isNaN()"/>
/// </summary>
/// <returns><see cref="bool"/></returns>
public bool IsNaN()
{
return IExecuteWithSignature<bool>("isNaN", "()Z");
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#compareTo(java.lang.Float)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Float"/></param>
/// <returns><see cref="int"/></returns>
public int CompareTo(Java.Lang.Float arg0)
{
return IExecuteWithSignature<int>("compareTo", "(Ljava/lang/Float;)I", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#compareTo(java.lang.Object)"/>
/// </summary>
/// <param name="arg0"><see cref="object"/></param>
/// <returns><see cref="int"/></returns>
public int CompareTo(object arg0)
{
return IExecuteWithSignature<int>("compareTo", "(Ljava/lang/Object;)I", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#resolveConstantDesc(java.lang.invoke.MethodHandles.Lookup)"/>
/// </summary>
/// <param name="arg0"><see cref="Java.Lang.Invoke.MethodHandles.Lookup"/></param>
/// <returns><see cref="object"/></returns>
/// <exception cref="Java.Lang.ReflectiveOperationException"/>
public object ResolveConstantDesc(Java.Lang.Invoke.MethodHandles.Lookup arg0)
{
return IExecuteWithSignature("resolveConstantDesc", "(Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/Object;", arg0);
}
/// <summary>
/// <see href="https://developer.android.com/reference/java.base/java/lang/Float.html#describeConstable()"/>
/// </summary>
/// <returns><see cref="Java.Util.Optional"/></returns>
public Java.Util.Optional<Java.Lang.Float> DescribeConstable()
{
return IExecuteWithSignature<Java.Util.Optional<Java.Lang.Float>>("describeConstable", "()Ljava/util/Optional;");
}
#endregion
#region Nested classes
#endregion
// TODO: complete the class
}
#endregion
}