forked from erwinel/sn_typings_server_scoped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Packages.d.ts
6695 lines (5952 loc) · 310 KB
/
Packages.d.ts
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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="$$rhino.d.ts" />
declare type GlideRecordOperationType = "delete" | "insert" | "update";
/**
* Type representing Java packages.
* Since access to Packages.* is not allowed in scoped apps, all classes will be represented as interfaces.
* This was done to avoid a scenario where the source code may reference a Java class using Packages.* and transpile
* successfully, but fail when used in ServiceNow.
* @namespace Packages
*/
declare namespace Packages {
/**
* Represents a Java array.
* @typedef {(ArrayLike<E> & java.lang.Object)} Array
* @template E - The type of elements in this array.
*/
export type Array<E> = ArrayLike<E> & java.lang.Object;
export namespace java {
export namespace io {
/**
* Represents the "InputStream" class.
* @export
* @interface InputStream
* @extends {java.lang.Object}
*/
export interface InputStream extends java.lang.Object {
read(): $$rhino.Number;
close(): void;
reset(): void;
}
}
export namespace lang {
/**
* Represents the base Java object class.
* @export
* @interface Object
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Object.html}
*/
export interface Object {
/**
* Indicates whether some other object is "equal to" this one.
* @param obj {*}
* @returns {$$rhino.Boolean}
*/
equals(obj: any): $$rhino.Boolean;
/**
* Returns a hash code value for the object.
* @returns {$$rhino.Number}
*/
hashCode(): $$rhino.Number;
/**
* Returns a string representation of the object.
* @returns {$$rhino.String}
*/
toString(): $$rhino.String;
}
/**
* This interface imposes a total ordering on the objects of each class that implements it.
* @export
* @interface Comparable
* @template T - The type of objects that this object may be compared to.
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Comparable.html}
*/
export interface Comparable<T> {
/**
* Compares this object with the specified object for order.
* @param o {T} The object to be compared.
* @returns {$$rhino.Number} A negative value if this object is less than the specified object;
* A non-zero positive number if this object is grater than the specified object;
* otherwise, zero if this object is equal to the specified object.
*/
compareTo(o: T): $$rhino.Number;
}
/**
* A readable sequence of char values.
* @export
* @interface CharSequence
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/CharSequence.html}
*/
export interface CharSequence {
/**
* Returns the char value at the specified index.
* @param index {$$rhino.Number}
* @returns {Character}
*/
charAt(index: $$rhino.Number): Character;
/**
* Returns the length of this character sequence.
* @returns {$$rhino.Number}
*/
length(): $$rhino.Number;
/**
* Returns a new CharSequence that is a subsequence of this sequence.
* @param start {$$rhino.Number}
* @param end {$$rhino.Number}
* @returns {CharSequence}
*/
subSequence(start: $$rhino.Number, end: $$rhino.Number): CharSequence;
/**
* Returns a string containing the characters in this sequence in the same order as this sequence.
* @returns {$$rhino.String}
*/
toString(): $$rhino.String;
}
/**
* Allows an object to be the target of the "for-each loop" statement.
* @export
* @interface Iterable
* @template T - The type of elements returned by the iterator.
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Iterable.html}
*/
export interface Iterable<T> {
/**
* Returns an iterator over the elements in this collection in proper sequence.
* @returns {Iterator<E>}
*/
iterator(): util.Iterator<T>;
}
/**
* Represents a java.lang.Character class or the primitive java char type.
* @export
* @interface Character
* @extends {Object}
* @extends {Comparable<Character>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Character.html}
*/
export interface Character extends Object, Comparable<Character> {
/**
* Returns the value of this Character object.
* @returns {Character}
*/
charValue(): Character;
/**
* Compares two Character objects numerically.
* @param anotherCharacter {$$rhino.String}
* @returns {$$rhino.Number}
*/
compareTo(anotherCharacter: $$rhino.StringLike): $$rhino.Number;
}
/**
* Represents the java.lang.String class.
* @export
* @interface String
* @extends {Object}
* @extends {Comparable<String>}
* @extends {CharSequence}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/String.html}
*/
export interface String extends Object, Comparable<String>, CharSequence {
/**
* Returns the char value at the specified index.
* @param index {$$rhino.Number}
* @returns {Character}
*/
charAt(index: $$rhino.Number): Character;
/**
* Returns the character (Unicode code point) at the specified index.
* @param index {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointAt(index: $$rhino.Number): $$rhino.Number;
/**
* Returns the character (Unicode code point) before the specified index.
* @param index {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointBefore(index: $$rhino.Number): $$rhino.Number;
/**
* Returns the number of Unicode code points in the specified text range of this String.
* @param beginIndex {$$rhino.Number}
* @param endIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointCount(beginIndex: $$rhino.Number, endIndex: $$rhino.Number): $$rhino.Number;
/**
* Compares two strings lexicographically.
* @param anotherString {$$rhino.String}
* @returns {$$rhino.Number}
*/
compareTo(anotherString: $$rhino.String): $$rhino.Number;
/**
* Compares two strings lexicographically, ignoring case differences.
* @param str {$$rhino.String}
* @returns {$$rhino.Number}
*/
compareToIgnoreCase(str: $$rhino.String): $$rhino.Number;
/**
* Concatenates the specified string to the end of this string.
* @param str {$$rhino.String}
* @returns {$$rhino.String}
*/
concat(str: $$rhino.String): $$rhino.String;
/**
* Returns true if and only if this string contains the specified sequence of char values.
* @param s {CharSequence}
* @returns {$$rhino.Boolean}
*/
contains(s: CharSequence): $$rhino.Boolean;
/**
* Compares this string to the specified CharSequence.
* @param cs {CharSequence}
* @returns {$$rhino.Boolean}
*/
contentEquals(cs: CharSequence): $$rhino.Boolean;
/**
* Compares this string to the specified StringBuffer.
* @param sb {StringBuffer}
* @returns {$$rhino.Boolean}
*/
contentEquals(sb: StringBuffer): $$rhino.Boolean;
/**
* Tests if this string ends with the specified suffix.
* @param suffix {$$rhino.String}
* @returns {$$rhino.Boolean}
*/
endsWith(suffix: $$rhino.String): $$rhino.Boolean;
/**
* Compares this String to another String, ignoring case considerations.
* @param anotherString {$$rhino.String}
* @returns {$$rhino.Boolean}
*/
equalsIgnoreCase(anotherString: $$rhino.String): $$rhino.Boolean;
/**
* Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array.
* @returns {Array<Byte>}
*/
getBytes(): Array<Byte>;
/**
* Encodes this String into a sequence of bytes using the named charset, storing the result into a new byte array.
* @param charsetName {$$rhino.String}
* @returns {Array<Byte>}
*/
getBytes(charsetName: $$rhino.String): Array<Byte>;
/**
* Copies characters from this string into the destination character array.
* @param srcBegin {$$rhino.Number}
* @param srcEnd {$$rhino.Number}
* @param dst {Array<$$rhino.String>}
* @param dstBegin {$$rhino.Number}
*/
getChars(srcBegin: $$rhino.Number, srcEnd: $$rhino.Number, dst: Array<$$rhino.String>, dstBegin: $$rhino.Number): void;
/**
* Returns the index within this string of the first occurrence of the specified character.
* @param ch {$$rhino.Number}
* @returns {$$rhino.Number}
*/
indexOf(ch: $$rhino.Number): $$rhino.Number;
/**
* Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index.
* @param ch {$$rhino.Number}
* @param fromIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
indexOf(ch: $$rhino.Number, fromIndex: $$rhino.Number): $$rhino.Number;
/**
* Returns the index within this string of the first occurrence of the specified substring.
* @param str {$$rhino.String}
* @returns {$$rhino.Number}
*/
indexOf(str: $$rhino.String): $$rhino.Number;
/**
* Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
* @param str {$$rhino.String}
* @param fromIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
indexOf(str: $$rhino.String, fromIndex: $$rhino.Number): $$rhino.Number;
/**
* Returns a canonical representation for the string object.
* @returns {$$rhino.String}
*/
intern(): $$rhino.String;
/**
* Returns true if, and only if, length() is 0.
* @returns {$$rhino.Boolean}
*/
isEmpty(): $$rhino.Boolean;
/**
* Returns the index within this string of the last occurrence of the specified character.
* @param ch {$$rhino.Number}
* @returns {$$rhino.Number}
*/
lastIndexOf(ch: $$rhino.Number): $$rhino.Number;
/**
* Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index.
* @param ch {$$rhino.Number}
* @param fromIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
lastIndexOf(ch: $$rhino.Number, fromIndex: $$rhino.Number): $$rhino.Number;
/**
* Returns the index within this string of the last occurrence of the specified substring.
* @param str {$$rhino.String}
* @returns {$$rhino.Number}
*/
lastIndexOf(str: $$rhino.String): $$rhino.Number;
/**
* Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.
* @param str {$$rhino.String}
* @param fromIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
lastIndexOf(str: $$rhino.String, fromIndex: $$rhino.Number): $$rhino.Number;
/**
* Returns the length of this string.
* @returns {$$rhino.Number}
*/
length(): $$rhino.Number;
/**
* Tells whether or not this string matches the given regular expression.
* @param regex {$$rhino.String}
* @returns {$$rhino.Boolean}
*/
matches(regex: $$rhino.String): $$rhino.Boolean;
/**
* Returns the index within this String that is offset from the given index by codePointOffset code points.
* @param index {$$rhino.Number}
* @param codePointOffset {$$rhino.Number}
* @returns {$$rhino.Number}
*/
offsetByCodePoints(index: $$rhino.Number, codePointOffset: $$rhino.Number): $$rhino.Number;
/**
* Tests if two string regions are equal.
* @param ignoreCase {$$rhino.Boolean}
* @param toffset {$$rhino.Number}
* @param other {$$rhino.String}
* @param ooffset {$$rhino.Number}
* @param len {$$rhino.Number}
* @returns {$$rhino.Boolean}
*/
regionMatches(ignoreCase: $$rhino.Boolean, toffset: $$rhino.Number, other: $$rhino.String, ooffset: $$rhino.Number, len: $$rhino.Number): $$rhino.Boolean;
/**
* Tests if two string regions are equal.
* @param toffset {$$rhino.Number}
* @param other {$$rhino.String}
* @param ooffset {$$rhino.Number}
* @param len {$$rhino.Number}
* @returns {$$rhino.Boolean}
*/
regionMatches(toffset: $$rhino.Number, other: $$rhino.String, ooffset: $$rhino.Number, len: $$rhino.Number): $$rhino.Boolean;
/**
* Returns a new string resulting from replacing all occurrences of oldChar in this string with newChar.
* @param oldChar {$$rhino.String}
* @param newChar {$$rhino.String}
* @returns {$$rhino.String}
*/
replace(oldChar: $$rhino.String, newChar: $$rhino.String): $$rhino.String;
/**
* Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.
* @param target {CharSequence}
* @param replacement {CharSequence}
* @returns {$$rhino.String}
*/
replace(target: CharSequence, replacement: CharSequence): $$rhino.String;
/**
* Replaces each substring of this string that matches the given regular expression with the given replacement.
* @param regex {$$rhino.String}
* @param replacement {$$rhino.String}
* @returns {$$rhino.String}
*/
replaceAll(regex: $$rhino.String, replacement: $$rhino.String): $$rhino.String;
/**
* Replaces the first substring of this string that matches the given regular expression with the given replacement.
* @param regex {$$rhino.String}
* @param replacement {$$rhino.String}
* @returns {$$rhino.String}
*/
replaceFirst(regex: $$rhino.String, replacement: $$rhino.String): $$rhino.String;
/**
* Splits this string around matches of the given regular expression.
* @param regex {$$rhino.String}
* @returns {Array<$$rhino.String>}
*/
split(regex: $$rhino.String): Array<$$rhino.String>;
/**
* Splits this string around matches of the given regular expression.
* @param regex {$$rhino.String}
* @param limit {$$rhino.Number}
* @returns {Array<$$rhino.String>}
*/
split(regex: $$rhino.String, limit: $$rhino.Number): Array<$$rhino.String>;
/**
* Tests if this string starts with the specified prefix.
* @param prefix {$$rhino.String}
* @returns {$$rhino.Boolean}
*/
startsWith(prefix: $$rhino.String): $$rhino.Boolean;
/**
* Tests if the substring of this string beginning at the specified index starts with the specified prefix.
* @param prefix {$$rhino.String}
* @param toffset {$$rhino.Number}
* @returns {$$rhino.Boolean}
*/
startsWith(prefix: $$rhino.String, toffset: $$rhino.Number): $$rhino.Boolean;
/**
* Returns a new character sequence that is a subsequence of this sequence.
* @param beginIndex {$$rhino.Number}
* @param endIndex {$$rhino.Number}
* @returns {CharSequence}
*/
subSequence(beginIndex: $$rhino.Number, endIndex: $$rhino.Number): CharSequence;
/**
* Returns a new string that is a substring of this string.
* @param beginIndex {$$rhino.Number}
* @returns {$$rhino.String}
*/
substring(beginIndex: $$rhino.Number): $$rhino.String;
/**
* Returns a new string that is a substring of this string.
* @param beginIndex {$$rhino.Number}
* @param endIndex {$$rhino.Number}
* @returns {$$rhino.String}
*/
substring(beginIndex: $$rhino.Number, endIndex: $$rhino.Number): $$rhino.String;
/**
* Converts this string to a new character array.
* @returns {Array<Character>}
*/
toCharArray(): Array<Character>;
/**
* Converts all of the characters in this string to lower case using the rules of the default locale.
* @returns {$$rhino.String}
*/
toLowerCase(): $$rhino.String;
/**
* Converts all of the characters in this string to lower case using the rules of the given Locale.
* @param locale {Locale}
* @returns {$$rhino.String}
*/
toLowerCase(locale: util.Locale): $$rhino.String;
/**
* Converts all of the characters in this string to upper case using the rules of the default locale.
* @returns {$$rhino.String}
*/
toUpperCase(): $$rhino.String;
/**
* Converts all of the characters in this string to upper case using the rules of the given Locale.
* @param locale {Locale}
* @returns {$$rhino.String}
*/
toUpperCase(locale: util.Locale): $$rhino.String;
/**
* Returns a copy of the string, with leading and trailing whitespace omitted.
* @returns {$$rhino.String}
*/
trim(): $$rhino.String;
}
/**
* Represents the java.lang.Number class or a primitive java number type.
* @export
* @interface Number
* @extends {Object}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Number.html}
*/
export interface Number extends Object {
/**
* Returns the value of the specified number as a byte.
* @returns {Byte}
*/
byteValue(): Byte;
/**
* Returns the value of the specified number as a double.
* @returns {Double}
*/
doubleValue(): Double;
/**
* Returns the value of the specified number as a float.
* @returns {Float}
*/
floatValue(): Float;
/**
* Returns the value of the specified number as an int.
* @returns {Integer}
*/
intValue(): Integer;
/**
* Returns the value of the specified number as a long.
* @returns {Long}
*/
longValue(): Long;
/**
* Returns the value of the specified number as a short.
* @returns {Short}
*/
shortValue(): Short;
}
/**
* Represents the java.lang.Boolean class or the primitive java $$rhino.Boolean type.
* @export
* @interface Boolean
* @extends {Object}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Boolean.html}
*/
export interface Boolean extends Object {
/**
* Returns the value of this Boolean object as a $$rhino.Boolean primitive.
* @returns {$$rhino.Boolean}
* @memberof {Boolean}
*/
booleanValue(): $$rhino.Boolean;
/**
* Compares this Boolean instance with another.
* @param {Boolean} b -
* @returns {$$rhino.Number}
* @memberof {Boolean}
*/
compareTo(b: Boolean): $$rhino.Number;
}
/**
* Represents the java.lang.Integer class or the primitive java int type.
* @export
* @interface Integer
* @extends {Number}
* @extends {Comparable<Integer>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Integer.html}
*/
export interface Integer extends Number, Comparable<Integer> {
/**
* Compares two Integer objects numerically.
* @param anotherInteger {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherInteger: $$rhino.Number): $$rhino.Number;
}
/**
* Represents the java.lang.Long class or the primitive java long type.
* @export
* @interface Long
* @extends {Number}
* @extends {Comparable<Long>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Long.html}
*/
export interface Long extends Number, Comparable<Long> {
/**
* Compares two Long objects numerically.
* @param anotherLong {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherLong: $$rhino.Number): $$rhino.Number;
}
/**
* Represents the java.lang.Double class or the primitive java double type.
* @export
* @interface Double
* @extends {Number}
* @extends {Comparable<Double>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Double.html}
*/
export interface Double extends Number, Comparable<Double> {
/**
* Compares two Double objects numerically.
* @param anotherDouble {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherDouble: $$rhino.Number): $$rhino.Number;
/**
* Returns true if this Double value is infinitely large in magnitude, false otherwise.
* @returns {$$rhino.Boolean}
*/
isInfinite(): $$rhino.Boolean;
/**
* Returns true if this Double value is a Not-a-Number (NaN), false otherwise.
* @returns {$$rhino.Boolean}
*/
isNaN(): $$rhino.Boolean;
}
/**
* Represents the java.lang.Byte class or the primitive java byte type.
* @export
* @interface Byte
* @extends {Number}
* @extends {Comparable<Byte>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Byte.html}
*/
export interface Byte extends Number, Comparable<Byte> {
/**
* Compares two Byte objects numerically.
* @param anotherByte {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherByte: $$rhino.Number): $$rhino.Number;
}
/**
* Represents the java.lang.Float class or the primitive java float type.
* @export
* @interface Float
* @extends {Number}
* @extends {Comparable<Float>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Float.html}
*/
export interface Float extends Number, Comparable<Float> {
/**
* Compares two Float objects numerically.
* @param anotherFloat {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherFloat: $$rhino.Number): $$rhino.Number;
/**
* Returns true if this Float value is infinitely large in magnitude, false otherwise.
* @returns {$$rhino.Boolean}
*/
isInfinite(): $$rhino.Boolean;
/**
* Returns true if this Float value is a Not-a-Number (NaN), false otherwise.
* @returns {$$rhino.Boolean}
*/
isNaN(): $$rhino.Boolean;
}
/**
* Represents the java.lang.Short class or the primitive java short type.
* @export
* @interface Short
* @extends {Number}
* @extends {Comparable<Short>}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/Short.html}
*/
export interface Short extends Number, Comparable<Short> {
/**
* Compares two Short objects numerically.
* @param anotherShort {$$rhino.Number}
* @returns {$$rhino.Number}
*/
compareTo(anotherShort: $$rhino.Number): $$rhino.Number;
}
/**
* Represents the java.lang.StringBuffer class.
* @export
* @interface StringBuffer
* @extends {Object}
* @extends {CharSequence}
* @see {@link https://docs.oracle.com/javase/10/docs/api/java/lang/StringBuffer.html}
*/
export interface StringBuffer extends Object, CharSequence {
/**
* Appends the string representation of the $$rhino.Boolean argument to the sequence.
* @param b {$$rhino.Boolean}
* @returns {StringBuffer}
*/
append(b: $$rhino.Boolean): StringBuffer;
/**
* Appends the string representation of the char argument to this sequence.
* @param c {$$rhino.String}
* @returns {StringBuffer}
*/
append(c: $$rhino.String): StringBuffer;
/**
* Appends the string representation of the char array argument to this sequence.
* @param str {Array<$$rhino.String>}
* @returns {StringBuffer}
*/
append(str: Array<$$rhino.String>): StringBuffer;
/**
* Appends the string representation of a subarray of the char array argument to this sequence.
* @param str {Array<$$rhino.String>}
* @param offset {$$rhino.Number}
* @param len {$$rhino.Number}
* @returns {StringBuffer}
*/
append(str: Array<$$rhino.String>, offset: $$rhino.Number, len: $$rhino.Number): StringBuffer;
/**
* Appends the specified CharSequence to this sequence.
* @param s {CharSequence}
* @returns {StringBuffer}
*/
append(s: CharSequence): StringBuffer;
/**
* Appends a subsequence of the specified CharSequence to this sequence.
* @param s {CharSequence}
* @param start {$$rhino.Number}
* @param end {$$rhino.Number}
* @returns {StringBuffer}
*/
append(s: CharSequence, start: $$rhino.Number, end: $$rhino.Number): StringBuffer;
/**
* Appends the string representation of the double argument to this sequence.
* @param d {$$rhino.Number}
* @returns {StringBuffer}
*/
append(d: $$rhino.Number): StringBuffer;
/**
* Appends the string representation of the float argument to this sequence.
* @param f {$$rhino.Number}
* @returns {StringBuffer}
*/
append(f: $$rhino.Number): StringBuffer;
/**
* Appends the string representation of the int argument to this sequence.
* @param i {$$rhino.Number}
* @returns {StringBuffer}
*/
append(i: $$rhino.Number): StringBuffer;
/**
* Appends the string representation of the long argument to this sequence.
* @param lng {$$rhino.Number}
* @returns {StringBuffer}
*/
append(lng: $$rhino.Number): StringBuffer;
/**
* Appends the string representation of the Object argument.
* @param obj {Object}
* @returns {StringBuffer}
*/
append(obj: Object): StringBuffer;
/**
* Appends the specified string to this character sequence.
* @param str {$$rhino.String}
* @returns {StringBuffer}
*/
append(str: $$rhino.String): StringBuffer;
/**
* Appends the specified StringBuffer to this sequence.
* @param sb {StringBuffer}
* @returns {StringBuffer}
*/
append(sb: StringBuffer): StringBuffer;
/**
* Appends the string representation of the codePoint argument to this sequence.
* @param codePoint {$$rhino.Number}
* @returns {StringBuffer}
*/
appendCodePoint(codePoint: $$rhino.Number): StringBuffer;
/**
* Returns the current capacity.
* @returns {$$rhino.Number}
*/
capacity(): $$rhino.Number;
/**
* Returns the char value in this sequence at the specified index.
* @param index {$$rhino.Number}
* @returns {Character}
*/
charAt(index: $$rhino.Number): lang.Character;
/**
* Returns the character (Unicode code point) at the specified index.
* @param index {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointAt(index: $$rhino.Number): $$rhino.Number;
/**
* Returns the character (Unicode code point) before the specified index.
* @param index {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointBefore(index: $$rhino.Number): $$rhino.Number;
/**
* Returns the number of Unicode code points in the specified text range of this sequence.
* @param beginIndex {$$rhino.Number}
* @param endIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
codePointCount(beginIndex: $$rhino.Number, endIndex: $$rhino.Number): $$rhino.Number;
/**
* Removes the characters in a substring of this sequence.
* @param start {$$rhino.Number}
* @param end {$$rhino.Number}
* @returns {StringBuffer}
*/
delete(start: $$rhino.Number, end: $$rhino.Number): StringBuffer;
/**
* Removes the char at the specified position in this sequence.
* @param index {$$rhino.Number}
* @returns {StringBuffer}
*/
deleteCharAt(index: $$rhino.Number): StringBuffer;
/**
* Ensures that the capacity is at least equal to the specified minimum.
* @param minimumCapacity {$$rhino.Number}
*/
ensureCapacity(minimumCapacity: $$rhino.Number): void;
/**
* Characters are copied from this sequence into the destination character array dst.
* @param srcBegin {$$rhino.Number}
* @param srcEnd {$$rhino.Number}
* @param dst {Array<$$rhino.String>}
* @param dstBegin {$$rhino.Number}
*/
getChars(srcBegin: $$rhino.Number, srcEnd: $$rhino.Number, dst: Array<$$rhino.String>, dstBegin: $$rhino.Number): void;
/**
* Returns the index within this string of the first occurrence of the specified substring.
* @param str {$$rhino.String}
* @returns {$$rhino.Number}
*/
indexOf(str: $$rhino.String): $$rhino.Number;
/**
* Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.
* @param str {$$rhino.String}
* @param fromIndex {$$rhino.Number}
* @returns {$$rhino.Number}
*/
indexOf(str: $$rhino.String, fromIndex: $$rhino.Number): $$rhino.Number;
/**
* Inserts the string representation of the $$rhino.Boolean argument into this sequence.
* @param offset {$$rhino.Number}
* @param b {$$rhino.Boolean}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, b: $$rhino.Boolean): StringBuffer;
/**
* Inserts the string representation of the char argument into this sequence.
* @param offset {$$rhino.Number}
* @param c {$$rhino.String}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, c: $$rhino.String): StringBuffer;
/**
* Inserts the string representation of the char array argument into this sequence.
* @param offset {$$rhino.Number}
* @param str {Array<$$rhino.String>}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, str: Array<$$rhino.String>): StringBuffer;
/**
* Inserts the string representation of a subarray of the str array argument into this sequence.
* @param index {$$rhino.Number}
* @param str {Array<$$rhino.String>}
* @param offset {$$rhino.Number}
* @param len {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(index: $$rhino.Number, str: Array<$$rhino.String>, offset: $$rhino.Number, len: $$rhino.Number): StringBuffer;
/**
* Inserts the specified CharSequence into this sequence.
* @param dstOffset {$$rhino.Number}
* @param s {CharSequence}
* @returns {StringBuffer}
*/
insert(dstOffset: $$rhino.Number, s: lang.CharSequence): StringBuffer;
/**
* Inserts a subsequence of the specified CharSequence into this sequence.
* @param dstOffset {$$rhino.Number}
* @param s {CharSequence}
* @param start {$$rhino.Number}
* @param end {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(dstOffset: $$rhino.Number, s: lang.CharSequence, start: $$rhino.Number, end: $$rhino.Number): StringBuffer;
/**
* Inserts the string representation of the double argument into this sequence.
* @param offset {$$rhino.Number}
* @param d {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, d: $$rhino.Number): StringBuffer;
/**
* Inserts the string representation of the float argument into this sequence.
* @param offset {$$rhino.Number}
* @param f {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, f: $$rhino.Number): StringBuffer;
/**
* Inserts the string representation of the second int argument into this sequence.
* @param offset {$$rhino.Number}
* @param i {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, i: $$rhino.Number): StringBuffer;
/**
* Inserts the string representation of the long argument into this sequence.
* @param offset {$$rhino.Number}
* @param l {$$rhino.Number}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, l: $$rhino.Number): StringBuffer;
/**
* Inserts the string representation of the Object argument into this character sequence.
* @param offset {$$rhino.Number}
* @param obj {Object}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, obj: Object): StringBuffer;
/**
* Inserts the string into this character sequence.
* @param offset {$$rhino.Number}
* @param str {$$rhino.String}
* @returns {StringBuffer}
*/
insert(offset: $$rhino.Number, str: $$rhino.String): StringBuffer;
/**
* Returns the index within this string of the rightmost occurrence of the specified substring.
* @param str {$$rhino.String}
* @returns {$$rhino.Number}
*/
lastIndexOf(str: $$rhino.String): $$rhino.Number;