-
Notifications
You must be signed in to change notification settings - Fork 0
/
java.text.d.ts
1018 lines (602 loc) · 22 KB
/
java.text.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="java.util.d.ts" />
/// <reference path="java.lang.d.ts" />
/// <reference path="java.io.d.ts" />
/// <reference path="java.math.d.ts" />
declare module '@afterburnerhq/java.text' {
import { Locale, TimeZone, Set, Calendar, Currency, Map, Date, Comparator } from '@afterburnerhq/java.util'
import { Enum, StringBuffer, Comparable, Number, CharSequence, Cloneable, Class, String, Exception } from '@afterburnerhq/java.lang'
import { Serializable } from '@afterburnerhq/java.io'
import { RoundingMode } from '@afterburnerhq/java.math'
export class Annotation {
constructor(arg0: Object);
getValue(): Object;
toString(): string;
}
export interface AttributedCharacterIterator extends CharacterIterator {
getRunStart(): number;
getRunStart(arg0: AttributedCharacterIterator.Attribute): number;
getRunStart(arg0: Set<AttributedCharacterIterator.Attribute>): number;
getRunLimit(): number;
getRunLimit(arg0: AttributedCharacterIterator.Attribute): number;
getRunLimit(arg0: Set<AttributedCharacterIterator.Attribute>): number;
getAttributes(): Map<AttributedCharacterIterator.Attribute, Object>;
getAttribute(arg0: AttributedCharacterIterator.Attribute): Object;
getAllAttributeKeys(): Set<AttributedCharacterIterator.Attribute>;
}
export namespace AttributedCharacterIterator {
export class Attribute implements Serializable {
static LANGUAGE:AttributedCharacterIterator.Attribute
static READING:AttributedCharacterIterator.Attribute
static INPUT_METHOD_SEGMENT:AttributedCharacterIterator.Attribute
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
}
export class AttributedString {
constructor(arg0: String);
constructor(arg0: String, arg1: Map<AttributedCharacterIterator.Attribute, any>);
constructor(arg0: AttributedCharacterIterator);
constructor(arg0: AttributedCharacterIterator, arg1: number, arg2: number);
constructor(arg0: AttributedCharacterIterator, arg1: number, arg2: number, arg3: AttributedCharacterIterator.Attribute[]);
addAttribute(arg0: AttributedCharacterIterator.Attribute, arg1: Object): void;
addAttribute(arg0: AttributedCharacterIterator.Attribute, arg1: Object, arg2: number, arg3: number): void;
addAttributes(arg0: Map<AttributedCharacterIterator.Attribute, any>, arg1: number, arg2: number): void;
getIterator(): AttributedCharacterIterator;
getIterator(arg0: AttributedCharacterIterator.Attribute[]): AttributedCharacterIterator;
getIterator(arg0: AttributedCharacterIterator.Attribute[], arg1: number, arg2: number): AttributedCharacterIterator;
}
export class Bidi {
static DIRECTION_LEFT_TO_RIGHT:number
static DIRECTION_RIGHT_TO_LEFT:number
static DIRECTION_DEFAULT_LEFT_TO_RIGHT:number
static DIRECTION_DEFAULT_RIGHT_TO_LEFT:number
constructor(arg0: String, arg1: number);
constructor(arg0: AttributedCharacterIterator);
constructor(arg0: String[], arg1: number, arg2: number[], arg3: number, arg4: number, arg5: number);
createLineBidi(arg0: number, arg1: number): Bidi;
isMixed(): boolean;
isLeftToRight(): boolean;
isRightToLeft(): boolean;
getLength(): number;
baseIsLeftToRight(): boolean;
getBaseLevel(): number;
getLevelAt(arg0: number): number;
getRunCount(): number;
getRunLevel(arg0: number): number;
getRunStart(arg0: number): number;
getRunLimit(arg0: number): number;
static requiresBidi(arg0: String[], arg1: number, arg2: number): boolean;
static reorderVisually(arg0: number[], arg1: number, arg2: Object[], arg3: number, arg4: number): void;
toString(): string;
}
export abstract class BreakIterator implements Cloneable {
static DONE:number
clone(): Object;
abstract first(): number;
abstract last(): number;
abstract next(arg0: number): number;
abstract next(): number;
abstract previous(): number;
abstract following(arg0: number): number;
preceding(arg0: number): number;
isBoundary(arg0: number): boolean;
abstract current(): number;
abstract getText(): CharacterIterator;
setText(arg0: String): void;
abstract setText(arg0: CharacterIterator): void;
static getWordInstance(): BreakIterator;
static getWordInstance(arg0: Locale): BreakIterator;
static getLineInstance(): BreakIterator;
static getLineInstance(arg0: Locale): BreakIterator;
static getCharacterInstance(): BreakIterator;
static getCharacterInstance(arg0: Locale): BreakIterator;
static getSentenceInstance(): BreakIterator;
static getSentenceInstance(arg0: Locale): BreakIterator;
static getAvailableLocales(): Locale[];
}
export namespace CharacterIterator {
const DONE:String
}
export interface CharacterIterator extends Cloneable {
DONE:String
first(): String;
last(): String;
current(): String;
next(): String;
previous(): String;
setIndex(arg0: number): String;
getBeginIndex(): number;
getEndIndex(): number;
getIndex(): number;
clone(): Object;
}
export class ChoiceFormat extends NumberFormat {
constructor(arg0: String);
constructor(arg0: number[], arg1: String[]);
applyPattern(arg0: String): void;
toPattern(): String;
setChoices(arg0: number[], arg1: String[]): void;
getLimits(): number[];
getFormats(): Object[];
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
parse(arg0: String, arg1: ParsePosition): Number;
static nextDouble(arg0: number): number;
static previousDouble(arg0: number): number;
clone(): Object;
hashCode(): number;
equals(arg0: Object): boolean;
static nextDouble(arg0: number, arg1: boolean): number;
}
export class CollationElementIterator {
static NULLORDER:number
reset(): void;
next(): number;
previous(): number;
static primaryOrder(arg0: number): number;
static secondaryOrder(arg0: number): number;
static tertiaryOrder(arg0: number): number;
setOffset(arg0: number): void;
getOffset(): number;
getMaxExpansion(arg0: number): number;
setText(arg0: String): void;
setText(arg0: CharacterIterator): void;
}
export abstract class CollationKey extends Object implements Comparable<CollationKey> {
abstract compareTo(arg0: CollationKey): number;
getSourceString(): String;
abstract toByteArray(): number[];
}
export interface Collator extends Comparator<Object>, Cloneable { }
export abstract class Collator extends Object implements Comparator<Object>, Cloneable {
static PRIMARY:number
static SECONDARY:number
static TERTIARY:number
static IDENTICAL:number
static NO_DECOMPOSITION:number
static CANONICAL_DECOMPOSITION:number
static FULL_DECOMPOSITION:number
static getInstance(): Collator;
static getInstance(arg0: Locale): Collator;
abstract compare(arg0: String, arg1: String): number;
compare(arg0: Object, arg1: Object): number;
abstract getCollationKey(arg0: String): CollationKey;
equals(arg0: String, arg1: String): boolean;
getStrength(): number;
setStrength(arg0: number): void;
getDecomposition(): number;
setDecomposition(arg0: number): void;
static getAvailableLocales(): Locale[];
clone(): Object;
equals(arg0: Object): boolean;
abstract hashCode(): number;
}
export class CompactNumberFormat extends NumberFormat {
constructor(arg0: String, arg1: DecimalFormatSymbols, arg2: String[]);
constructor(arg0: String, arg1: DecimalFormatSymbols, arg2: String[], arg3: String);
format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
formatToCharacterIterator(arg0: Object): AttributedCharacterIterator;
parse(arg0: String, arg1: ParsePosition): Number;
setMaximumIntegerDigits(arg0: number): void;
setMinimumIntegerDigits(arg0: number): void;
setMinimumFractionDigits(arg0: number): void;
setMaximumFractionDigits(arg0: number): void;
getRoundingMode(): RoundingMode;
setRoundingMode(arg0: RoundingMode): void;
getGroupingSize(): number;
setGroupingSize(arg0: number): void;
isGroupingUsed(): boolean;
setGroupingUsed(arg0: boolean): void;
isParseIntegerOnly(): boolean;
setParseIntegerOnly(arg0: boolean): void;
isParseBigDecimal(): boolean;
setParseBigDecimal(arg0: boolean): void;
equals(arg0: Object): boolean;
hashCode(): number;
clone(): CompactNumberFormat;
}
export abstract class DateFormat extends Format {
static ERA_FIELD:number
static YEAR_FIELD:number
static MONTH_FIELD:number
static DATE_FIELD:number
static HOUR_OF_DAY1_FIELD:number
static HOUR_OF_DAY0_FIELD:number
static MINUTE_FIELD:number
static SECOND_FIELD:number
static MILLISECOND_FIELD:number
static DAY_OF_WEEK_FIELD:number
static DAY_OF_YEAR_FIELD:number
static DAY_OF_WEEK_IN_MONTH_FIELD:number
static WEEK_OF_YEAR_FIELD:number
static WEEK_OF_MONTH_FIELD:number
static AM_PM_FIELD:number
static HOUR1_FIELD:number
static HOUR0_FIELD:number
static TIMEZONE_FIELD:number
static FULL:number
static LONG:number
static MEDIUM:number
static SHORT:number
static DEFAULT:number
format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
abstract format(arg0: Date, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: Date): String;
parse(arg0: String): Date;
abstract parse(arg0: String, arg1: ParsePosition): Date;
parseObject(arg0: String, arg1: ParsePosition): Object;
static getTimeInstance(): DateFormat;
static getTimeInstance(arg0: number): DateFormat;
static getTimeInstance(arg0: number, arg1: Locale): DateFormat;
static getDateInstance(): DateFormat;
static getDateInstance(arg0: number): DateFormat;
static getDateInstance(arg0: number, arg1: Locale): DateFormat;
static getDateTimeInstance(): DateFormat;
static getDateTimeInstance(arg0: number, arg1: number): DateFormat;
static getDateTimeInstance(arg0: number, arg1: number, arg2: Locale): DateFormat;
static getInstance(): DateFormat;
static getAvailableLocales(): Locale[];
setCalendar(arg0: Calendar): void;
getCalendar(): Calendar;
setNumberFormat(arg0: NumberFormat): void;
getNumberFormat(): NumberFormat;
setTimeZone(arg0: TimeZone): void;
getTimeZone(): TimeZone;
setLenient(arg0: boolean): void;
isLenient(): boolean;
hashCode(): number;
equals(arg0: Object): boolean;
clone(): Object;
}
export namespace DateFormat {
export class Field extends Format.Field {
static ERA:DateFormat.Field
static YEAR:DateFormat.Field
static MONTH:DateFormat.Field
static DAY_OF_MONTH:DateFormat.Field
static HOUR_OF_DAY1:DateFormat.Field
static HOUR_OF_DAY0:DateFormat.Field
static MINUTE:DateFormat.Field
static SECOND:DateFormat.Field
static MILLISECOND:DateFormat.Field
static DAY_OF_WEEK:DateFormat.Field
static DAY_OF_YEAR:DateFormat.Field
static DAY_OF_WEEK_IN_MONTH:DateFormat.Field
static WEEK_OF_YEAR:DateFormat.Field
static WEEK_OF_MONTH:DateFormat.Field
static AM_PM:DateFormat.Field
static HOUR1:DateFormat.Field
static HOUR0:DateFormat.Field
static TIME_ZONE:DateFormat.Field
static ofCalendarField(arg0: number): DateFormat.Field;
getCalendarField(): number;
}
}
export class DateFormatSymbols implements Serializable, Cloneable {
constructor();
constructor(arg0: Locale);
static getAvailableLocales(): Locale[];
static getInstance(): DateFormatSymbols;
static getInstance(arg0: Locale): DateFormatSymbols;
getEras(): String[];
setEras(arg0: String[]): void;
getMonths(): String[];
setMonths(arg0: String[]): void;
getShortMonths(): String[];
setShortMonths(arg0: String[]): void;
getWeekdays(): String[];
setWeekdays(arg0: String[]): void;
getShortWeekdays(): String[];
setShortWeekdays(arg0: String[]): void;
getAmPmStrings(): String[];
setAmPmStrings(arg0: String[]): void;
getZoneStrings(): Array<Array<String>>;
setZoneStrings(arg0: Array<Array<String>>): void;
getLocalPatternChars(): String;
setLocalPatternChars(arg0: String): void;
clone(): Object;
hashCode(): number;
equals(arg0: Object): boolean;
}
export class DecimalFormat extends NumberFormat {
constructor();
constructor(arg0: String);
constructor(arg0: String, arg1: DecimalFormatSymbols);
format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
formatToCharacterIterator(arg0: Object): AttributedCharacterIterator;
parse(arg0: String, arg1: ParsePosition): Number;
getDecimalFormatSymbols(): DecimalFormatSymbols;
setDecimalFormatSymbols(arg0: DecimalFormatSymbols): void;
getPositivePrefix(): String;
setPositivePrefix(arg0: String): void;
getNegativePrefix(): String;
setNegativePrefix(arg0: String): void;
getPositiveSuffix(): String;
setPositiveSuffix(arg0: String): void;
getNegativeSuffix(): String;
setNegativeSuffix(arg0: String): void;
getMultiplier(): number;
setMultiplier(arg0: number): void;
setGroupingUsed(arg0: boolean): void;
getGroupingSize(): number;
setGroupingSize(arg0: number): void;
isDecimalSeparatorAlwaysShown(): boolean;
setDecimalSeparatorAlwaysShown(arg0: boolean): void;
isParseBigDecimal(): boolean;
setParseBigDecimal(arg0: boolean): void;
clone(): Object;
equals(arg0: Object): boolean;
hashCode(): number;
toPattern(): String;
toLocalizedPattern(): String;
applyPattern(arg0: String): void;
applyLocalizedPattern(arg0: String): void;
setMaximumIntegerDigits(arg0: number): void;
setMinimumIntegerDigits(arg0: number): void;
setMaximumFractionDigits(arg0: number): void;
setMinimumFractionDigits(arg0: number): void;
getMaximumIntegerDigits(): number;
getMinimumIntegerDigits(): number;
getMaximumFractionDigits(): number;
getMinimumFractionDigits(): number;
getCurrency(): Currency;
setCurrency(arg0: Currency): void;
getRoundingMode(): RoundingMode;
setRoundingMode(arg0: RoundingMode): void;
}
export class DecimalFormatSymbols implements Cloneable, Serializable {
constructor();
constructor(arg0: Locale);
static getAvailableLocales(): Locale[];
static getInstance(): DecimalFormatSymbols;
static getInstance(arg0: Locale): DecimalFormatSymbols;
getZeroDigit(): String;
setZeroDigit(arg0: String): void;
getGroupingSeparator(): String;
setGroupingSeparator(arg0: String): void;
getDecimalSeparator(): String;
setDecimalSeparator(arg0: String): void;
getPerMill(): String;
setPerMill(arg0: String): void;
getPercent(): String;
setPercent(arg0: String): void;
getDigit(): String;
setDigit(arg0: String): void;
getPatternSeparator(): String;
setPatternSeparator(arg0: String): void;
getInfinity(): String;
setInfinity(arg0: String): void;
getNaN(): String;
setNaN(arg0: String): void;
getMinusSign(): String;
setMinusSign(arg0: String): void;
getCurrencySymbol(): String;
setCurrencySymbol(arg0: String): void;
getInternationalCurrencySymbol(): String;
setInternationalCurrencySymbol(arg0: String): void;
getCurrency(): Currency;
setCurrency(arg0: Currency): void;
getMonetaryDecimalSeparator(): String;
setMonetaryDecimalSeparator(arg0: String): void;
getExponentSeparator(): String;
setExponentSeparator(arg0: String): void;
getMonetaryGroupingSeparator(): String;
setMonetaryGroupingSeparator(arg0: String): void;
clone(): Object;
equals(arg0: Object): boolean;
hashCode(): number;
}
export class FieldPosition {
constructor(arg0: number);
constructor(arg0: Format.Field);
constructor(arg0: Format.Field, arg1: number);
getFieldAttribute(): Format.Field;
getField(): number;
getBeginIndex(): number;
getEndIndex(): number;
setBeginIndex(arg0: number): void;
setEndIndex(arg0: number): void;
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
export abstract class Format implements Serializable, Cloneable {
format(arg0: Object): String;
abstract format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
formatToCharacterIterator(arg0: Object): AttributedCharacterIterator;
abstract parseObject(arg0: String, arg1: ParsePosition): Object;
parseObject(arg0: String): Object;
clone(): Object;
}
export namespace Format {
export class Field extends AttributedCharacterIterator.Attribute {
}
}
export class MessageFormat extends Format {
constructor(arg0: String);
constructor(arg0: String, arg1: Locale);
setLocale(arg0: Locale): void;
getLocale(): Locale;
applyPattern(arg0: String): void;
toPattern(): String;
setFormatsByArgumentIndex(arg0: Format[]): void;
setFormats(arg0: Format[]): void;
setFormatByArgumentIndex(arg0: number, arg1: Format): void;
setFormat(arg0: number, arg1: Format): void;
getFormatsByArgumentIndex(): Format[];
getFormats(): Format[];
format(arg0: Object[], arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
static format(arg0: String, arg1: Object[]): String;
format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
formatToCharacterIterator(arg0: Object): AttributedCharacterIterator;
parse(arg0: String, arg1: ParsePosition): Object[];
parse(arg0: String): Object[];
parseObject(arg0: String, arg1: ParsePosition): Object;
clone(): Object;
equals(arg0: Object): boolean;
hashCode(): number;
}
export namespace MessageFormat {
export class Field extends Format.Field {
static ARGUMENT:MessageFormat.Field
}
}
export class Normalizer {
static normalize(arg0: CharSequence, arg1: Normalizer.Form): String;
static isNormalized(arg0: CharSequence, arg1: Normalizer.Form): boolean;
}
export namespace Normalizer {
export class Form extends Enum<Normalizer.Form> {
static NFD:Normalizer.Form
static NFC:Normalizer.Form
static NFKD:Normalizer.Form
static NFKC:Normalizer.Form
static values(): Normalizer.Form[];
static valueOf(arg0: String): Normalizer.Form;
/**
* DO NOT USE
*/
static valueOf<T extends Enum<T>>(arg0: Class<T>, arg1: String): T;
}
}
export abstract class NumberFormat extends Format {
static INTEGER_FIELD:number
static FRACTION_FIELD:number
format(arg0: Object, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
parseObject(arg0: String, arg1: ParsePosition): Object;
format(arg0: number): String;
format(arg0: number): String;
abstract format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
abstract format(arg0: number, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
abstract parse(arg0: String, arg1: ParsePosition): Number;
parse(arg0: String): Number;
isParseIntegerOnly(): boolean;
setParseIntegerOnly(arg0: boolean): void;
static getInstance(): NumberFormat;
static getInstance(arg0: Locale): NumberFormat;
static getNumberInstance(): NumberFormat;
static getNumberInstance(arg0: Locale): NumberFormat;
static getIntegerInstance(): NumberFormat;
static getIntegerInstance(arg0: Locale): NumberFormat;
static getCurrencyInstance(): NumberFormat;
static getCurrencyInstance(arg0: Locale): NumberFormat;
static getPercentInstance(): NumberFormat;
static getPercentInstance(arg0: Locale): NumberFormat;
static getCompactNumberInstance(): NumberFormat;
static getCompactNumberInstance(arg0: Locale, arg1: NumberFormat.Style): NumberFormat;
static getAvailableLocales(): Locale[];
hashCode(): number;
equals(arg0: Object): boolean;
clone(): Object;
isGroupingUsed(): boolean;
setGroupingUsed(arg0: boolean): void;
getMaximumIntegerDigits(): number;
setMaximumIntegerDigits(arg0: number): void;
getMinimumIntegerDigits(): number;
setMinimumIntegerDigits(arg0: number): void;
getMaximumFractionDigits(): number;
setMaximumFractionDigits(arg0: number): void;
getMinimumFractionDigits(): number;
setMinimumFractionDigits(arg0: number): void;
getCurrency(): Currency;
setCurrency(arg0: Currency): void;
getRoundingMode(): RoundingMode;
setRoundingMode(arg0: RoundingMode): void;
}
export namespace NumberFormat {
export class Field extends Format.Field {
static INTEGER:NumberFormat.Field
static FRACTION:NumberFormat.Field
static EXPONENT:NumberFormat.Field
static DECIMAL_SEPARATOR:NumberFormat.Field
static SIGN:NumberFormat.Field
static GROUPING_SEPARATOR:NumberFormat.Field
static EXPONENT_SYMBOL:NumberFormat.Field
static PERCENT:NumberFormat.Field
static PERMILLE:NumberFormat.Field
static CURRENCY:NumberFormat.Field
static EXPONENT_SIGN:NumberFormat.Field
static PREFIX:NumberFormat.Field
static SUFFIX:NumberFormat.Field
}
export class Style extends Enum<NumberFormat.Style> {
static SHORT:NumberFormat.Style
static LONG:NumberFormat.Style
static values(): NumberFormat.Style[];
static valueOf(arg0: String): NumberFormat.Style;
/**
* DO NOT USE
*/
static valueOf<T extends Enum<T>>(arg0: Class<T>, arg1: String): T;
}
}
export class ParseException extends Exception {
constructor(arg0: String, arg1: number);
getErrorOffset(): number;
}
export class ParsePosition {
constructor(arg0: number);
getIndex(): number;
setIndex(arg0: number): void;
setErrorIndex(arg0: number): void;
getErrorIndex(): number;
equals(arg0: Object): boolean;
hashCode(): number;
toString(): string;
}
export interface RuleBasedCollator { }
export class RuleBasedCollator extends Collator {
constructor(arg0: String);
getRules(): String;
getCollationElementIterator(arg0: String): CollationElementIterator;
getCollationElementIterator(arg0: CharacterIterator): CollationElementIterator;
compare(arg0: String, arg1: String): number;
getCollationKey(arg0: String): CollationKey;
clone(): Object;
equals(arg0: Object): boolean;
hashCode(): number;
}
export class SimpleDateFormat extends DateFormat {
constructor();
constructor(arg0: String);
constructor(arg0: String, arg1: Locale);
constructor(arg0: String, arg1: DateFormatSymbols);
set2DigitYearStart(arg0: Date): void;
get2DigitYearStart(): Date;
format(arg0: Date, arg1: StringBuffer, arg2: FieldPosition): StringBuffer;
formatToCharacterIterator(arg0: Object): AttributedCharacterIterator;
parse(arg0: String, arg1: ParsePosition): Date;
toPattern(): String;
toLocalizedPattern(): String;
applyPattern(arg0: String): void;
applyLocalizedPattern(arg0: String): void;
getDateFormatSymbols(): DateFormatSymbols;
setDateFormatSymbols(arg0: DateFormatSymbols): void;
clone(): Object;
hashCode(): number;
equals(arg0: Object): boolean;
}
export class StringCharacterIterator implements CharacterIterator {
constructor(arg0: String);
constructor(arg0: String, arg1: number);
constructor(arg0: String, arg1: number, arg2: number, arg3: number);
setText(arg0: String): void;
first(): String;
last(): String;
setIndex(arg0: number): String;
current(): String;