@sitevision/api 2023.2.2-beta.1 → 2023.2.2-beta.2
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.
- package/package.json +1 -1
- package/types/java/io/File/index.d.ts +0 -120
- package/types/java/io/File/index.js +0 -2
- package/types/java/lang/Boolean/index.d.ts +0 -123
- package/types/java/lang/Boolean/index.js +1 -8
- package/types/java/lang/Class/index.d.ts +2 -93
- package/types/java/lang/Class/index.js +0 -1
- package/types/java/lang/ClassLoader/index.d.ts +0 -91
- package/types/java/lang/ClassLoader/index.js +0 -5
- package/types/java/lang/Double/index.d.ts +0 -541
- package/types/java/lang/Double/index.js +2 -13
- package/types/java/lang/Enum/index.d.ts +0 -23
- package/types/java/lang/Enum/index.js +0 -1
- package/types/java/lang/Float/index.d.ts +0 -494
- package/types/java/lang/Float/index.js +2 -13
- package/types/java/lang/Integer/index.d.ts +0 -780
- package/types/java/lang/Integer/index.js +2 -29
- package/types/java/lang/Long/index.d.ts +0 -788
- package/types/java/lang/Long/index.js +2 -28
- package/types/java/lang/Package/index.d.ts +0 -28
- package/types/java/lang/Package/index.js +0 -2
- package/types/java/lang/String/index.d.ts +0 -193
- package/types/java/lang/String/index.js +0 -4
- package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
- package/types/java/math/BigDecimal/index.d.ts +1 -40
- package/types/java/math/BigDecimal/index.js +0 -1
- package/types/java/math/BigInteger/index.d.ts +0 -25
- package/types/java/math/BigInteger/index.js +0 -2
- package/types/java/net/InetAddress/index.d.ts +0 -134
- package/types/java/net/InetAddress/index.js +1 -6
- package/types/java/net/NetworkInterface/index.d.ts +0 -50
- package/types/java/net/NetworkInterface/index.js +0 -4
- package/types/java/net/URI/index.d.ts +0 -22
- package/types/java/net/URI/index.js +0 -1
- package/types/java/net/URL/index.d.ts +0 -23
- package/types/java/net/URL/index.js +1 -2
- package/types/java/net/URLConnection/index.d.ts +0 -125
- package/types/java/net/URLConnection/index.js +1 -10
- package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
- package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
- package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
- package/types/java/nio/channels/FileChannel/index.js +0 -1
- package/types/java/nio/charset/Charset/index.d.ts +1 -58
- package/types/java/nio/charset/Charset/index.js +0 -4
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
- package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
- package/types/java/text/DateFormat/index.d.ts +0 -130
- package/types/java/text/DateFormat/index.js +0 -5
- package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
- package/types/java/text/DateFormatSymbols/index.js +0 -2
- package/types/java/text/NumberFormat/index.d.ts +0 -123
- package/types/java/text/NumberFormat/index.js +0 -6
- package/types/java/time/Clock/index.d.ts +1 -162
- package/types/java/time/Clock/index.js +0 -8
- package/types/java/time/Duration/index.d.ts +3 -193
- package/types/java/time/Duration/index.js +0 -10
- package/types/java/time/Instant/index.d.ts +0 -101
- package/types/java/time/Instant/index.js +0 -5
- package/types/java/time/LocalDate/index.d.ts +4 -134
- package/types/java/time/LocalDate/index.js +0 -6
- package/types/java/time/LocalDateTime/index.d.ts +7 -285
- package/types/java/time/LocalDateTime/index.js +0 -6
- package/types/java/time/LocalTime/index.d.ts +2 -146
- package/types/java/time/LocalTime/index.js +0 -6
- package/types/java/time/OffsetDateTime/index.d.ts +7 -177
- package/types/java/time/OffsetDateTime/index.js +0 -6
- package/types/java/time/OffsetTime/index.d.ts +3 -141
- package/types/java/time/OffsetTime/index.js +0 -5
- package/types/java/time/Period/index.d.ts +1 -135
- package/types/java/time/Period/index.js +0 -8
- package/types/java/time/ZoneId/index.d.ts +1 -121
- package/types/java/time/ZoneId/index.js +0 -5
- package/types/java/time/ZoneOffset/index.d.ts +1 -104
- package/types/java/time/ZoneOffset/index.js +0 -6
- package/types/java/time/ZonedDateTime/index.d.ts +6 -284
- package/types/java/time/ZonedDateTime/index.js +0 -7
- package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
- package/types/java/time/format/DateTimeFormatter/index.js +0 -6
- package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
- package/types/java/time/format/DecimalStyle/index.js +0 -3
- package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
- package/types/java/time/temporal/ValueRange/index.js +0 -1
- package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
- package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
- package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
- package/types/java/time/zone/ZoneRules/index.js +0 -1
- package/types/java/util/Calendar/index.d.ts +2 -67
- package/types/java/util/Calendar/index.js +0 -3
- package/types/java/util/Comparator/index.d.ts +16 -16
- package/types/java/util/Currency/index.d.ts +0 -38
- package/types/java/util/Currency/index.js +0 -2
- package/types/java/util/Date/index.d.ts +0 -160
- package/types/java/util/Date/index.js +0 -3
- package/types/java/util/Locale/index.d.ts +0 -344
- package/types/java/util/Locale/index.js +1 -11
- package/types/java/util/Optional/index.d.ts +0 -27
- package/types/java/util/Optional/index.js +0 -3
- package/types/java/util/OptionalDouble/index.d.ts +0 -15
- package/types/java/util/OptionalDouble/index.js +0 -2
- package/types/java/util/OptionalInt/index.d.ts +0 -15
- package/types/java/util/OptionalInt/index.js +0 -2
- package/types/java/util/OptionalLong/index.d.ts +0 -15
- package/types/java/util/OptionalLong/index.js +0 -2
- package/types/java/util/TimeZone/index.d.ts +0 -65
- package/types/java/util/TimeZone/index.js +0 -4
- package/types/javax/jcr/PropertyType/index.d.ts +2 -18
- package/types/javax/jcr/PropertyType/index.js +1 -4
- package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
- package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
- package/types/java/net/ContentHandler/index.d.ts +0 -70
- package/types/java/net/ContentHandler/index.js +0 -10
- package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
- package/types/java/net/ContentHandlerFactory/index.js +0 -10
- package/types/java/net/FileNameMap/index.d.ts +0 -16
- package/types/java/net/FileNameMap/index.js +0 -10
- package/types/java/net/URLStreamHandler/index.d.ts +0 -199
- package/types/java/net/URLStreamHandler/index.js +0 -19
- package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
- package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
- package/types/java/time/format/FormatStyle/index.d.ts +0 -14
- package/types/java/time/format/FormatStyle/index.js +0 -13
- package/types/java/util/Locale.Category/index.d.ts +0 -12
- package/types/java/util/Locale.Category/index.js +0 -11
- package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
- package/types/java/util/Locale.FilteringMode/index.js +0 -14
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import type { Category } from "../Locale.Category";
|
|
2
|
-
|
|
3
1
|
import type { String } from "../../lang/String";
|
|
4
2
|
|
|
5
3
|
import type { Set } from "../Set";
|
|
6
4
|
import type { Object } from "../../lang/Object";
|
|
7
5
|
|
|
8
|
-
import type { List } from "../List";
|
|
9
|
-
import type { Collection } from "../Collection";
|
|
10
|
-
import type { FilteringMode } from "../Locale.FilteringMode";
|
|
11
6
|
import type { Cloneable } from "../../lang/Cloneable";
|
|
12
7
|
import type { Serializable } from "../../io/Serializable";
|
|
13
8
|
|
|
@@ -430,130 +425,6 @@ import type { Serializable } from "../../io/Serializable";
|
|
|
430
425
|
export type Locale = Object &
|
|
431
426
|
Cloneable &
|
|
432
427
|
Serializable & {
|
|
433
|
-
/**
|
|
434
|
-
* Gets the current value of the default locale for this instance
|
|
435
|
-
* of the Java Virtual Machine.
|
|
436
|
-
* <p>
|
|
437
|
-
* The Java Virtual Machine sets the default locale during startup
|
|
438
|
-
* based on the host environment. It is used by many locale-sensitive
|
|
439
|
-
* methods if no locale is explicitly specified.
|
|
440
|
-
* It can be changed using the
|
|
441
|
-
* {@link #setDefault(java.util.Locale) setDefault} method.
|
|
442
|
-
* @return the default locale for this instance of the Java Virtual Machine
|
|
443
|
-
*/
|
|
444
|
-
getDefault(): Locale;
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Gets the current value of the default locale for the specified Category
|
|
448
|
-
* for this instance of the Java Virtual Machine.
|
|
449
|
-
* <p>
|
|
450
|
-
* The Java Virtual Machine sets the default locale during startup based
|
|
451
|
-
* on the host environment. It is used by many locale-sensitive methods
|
|
452
|
-
* if no locale is explicitly specified. It can be changed using the
|
|
453
|
-
* setDefault(Locale.Category, Locale) method.
|
|
454
|
-
* @param category - the specified category to get the default locale
|
|
455
|
-
* @throws NullPointerException - if category is null
|
|
456
|
-
* @return the default locale for the specified Category for this instance
 of the Java Virtual Machine
|
|
457
|
-
* @see #setDefault(Locale.Category, Locale)
|
|
458
|
-
* @since 1.7
|
|
459
|
-
*/
|
|
460
|
-
getDefault(category: Category): Locale;
|
|
461
|
-
|
|
462
|
-
/**
|
|
463
|
-
* Sets the default locale for this instance of the Java Virtual Machine.
|
|
464
|
-
* This does not affect the host locale.
|
|
465
|
-
* <p>
|
|
466
|
-
* If there is a security manager, its <code>checkPermission</code>
|
|
467
|
-
* method is called with a <code>PropertyPermission("user.language", "write")</code>
|
|
468
|
-
* permission before the default locale is changed.
|
|
469
|
-
* <p>
|
|
470
|
-
* The Java Virtual Machine sets the default locale during startup
|
|
471
|
-
* based on the host environment. It is used by many locale-sensitive
|
|
472
|
-
* methods if no locale is explicitly specified.
|
|
473
|
-
* <p>
|
|
474
|
-
* Since changing the default locale may affect many different areas
|
|
475
|
-
* of functionality, this method should only be used if the caller
|
|
476
|
-
* is prepared to reinitialize locale-sensitive code running
|
|
477
|
-
* within the same Java Virtual Machine.
|
|
478
|
-
* <p>
|
|
479
|
-
* By setting the default locale with this method, all of the default
|
|
480
|
-
* locales for each Category are also set to the specified default locale.
|
|
481
|
-
* @throws SecurityException
 if a security manager exists and its
 <code>checkPermission</code> method doesn't allow the operation.
|
|
482
|
-
* @throws NullPointerException if <code>newLocale</code> is null
|
|
483
|
-
* @param newLocale the new default locale
|
|
484
|
-
* @see SecurityManager#checkPermission
|
|
485
|
-
* @see java.util.PropertyPermission
|
|
486
|
-
*/
|
|
487
|
-
setDefault(newLocale: Locale): void;
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Sets the default locale for the specified Category for this instance
|
|
491
|
-
* of the Java Virtual Machine. This does not affect the host locale.
|
|
492
|
-
* <p>
|
|
493
|
-
* If there is a security manager, its checkPermission method is called
|
|
494
|
-
* with a PropertyPermission("user.language", "write") permission before
|
|
495
|
-
* the default locale is changed.
|
|
496
|
-
* <p>
|
|
497
|
-
* The Java Virtual Machine sets the default locale during startup based
|
|
498
|
-
* on the host environment. It is used by many locale-sensitive methods
|
|
499
|
-
* if no locale is explicitly specified.
|
|
500
|
-
* <p>
|
|
501
|
-
* Since changing the default locale may affect many different areas of
|
|
502
|
-
* functionality, this method should only be used if the caller is
|
|
503
|
-
* prepared to reinitialize locale-sensitive code running within the
|
|
504
|
-
* same Java Virtual Machine.
|
|
505
|
-
* <p>
|
|
506
|
-
* @param category - the specified category to set the default locale
|
|
507
|
-
* @param newLocale - the new default locale
|
|
508
|
-
* @throws SecurityException - if a security manager exists and its
 checkPermission method doesn't allow the operation.
|
|
509
|
-
* @throws NullPointerException - if category and/or newLocale is null
|
|
510
|
-
* @see SecurityManager#checkPermission(java.security.Permission)
|
|
511
|
-
* @see PropertyPermission
|
|
512
|
-
* @see #getDefault(Locale.Category)
|
|
513
|
-
* @since 1.7
|
|
514
|
-
*/
|
|
515
|
-
setDefault(category: Category, newLocale: Locale): void;
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* Returns an array of all installed locales.
|
|
519
|
-
* The returned array represents the union of locales supported
|
|
520
|
-
* by the Java runtime environment and by installed
|
|
521
|
-
* {@link java.util.spi.LocaleServiceProvider LocaleServiceProvider}
|
|
522
|
-
* implementations. It must contain at least a <code>Locale</code>
|
|
523
|
-
* instance equal to {@link java.util.Locale#US Locale.US}.
|
|
524
|
-
* @return An array of installed locales.
|
|
525
|
-
*/
|
|
526
|
-
getAvailableLocales(): Locale;
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* Returns a list of all 2-letter country codes defined in ISO 3166.
|
|
530
|
-
* Can be used to create Locales.
|
|
531
|
-
* <p>
|
|
532
|
-
* <b>Note:</b> The <code>Locale</code> class also supports other codes for
|
|
533
|
-
* country (region), such as 3-letter numeric UN M.49 area codes.
|
|
534
|
-
* Therefore, the list returned by this method does not contain ALL valid
|
|
535
|
-
* codes that can be used to create Locales.
|
|
536
|
-
* @return An array of ISO 3166 two-letter country codes.
|
|
537
|
-
*/
|
|
538
|
-
getISOCountries(): string;
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* Returns a list of all 2-letter language codes defined in ISO 639.
|
|
542
|
-
* Can be used to create Locales.
|
|
543
|
-
* <p>
|
|
544
|
-
* <b>Note:</b>
|
|
545
|
-
* <ul>
|
|
546
|
-
* <li>ISO 639 is not a stable standard— some languages' codes have changed.
|
|
547
|
-
* The list this function returns includes both the new and the old codes for the
|
|
548
|
-
* languages whose codes have changed.
|
|
549
|
-
* <li>The <code>Locale</code> class also supports language codes up to
|
|
550
|
-
* 8 characters in length. Therefore, the list returned by this method does
|
|
551
|
-
* not contain ALL valid codes that can be used to create Locales.
|
|
552
|
-
* </ul>
|
|
553
|
-
* @return Am array of ISO 639 two-letter language codes.
|
|
554
|
-
*/
|
|
555
|
-
getISOLanguages(): string;
|
|
556
|
-
|
|
557
428
|
/**
|
|
558
429
|
* Returns the language code of this Locale.
|
|
559
430
|
*
|
|
@@ -785,127 +656,6 @@ export type Locale = Object &
|
|
|
785
656
|
*/
|
|
786
657
|
toLanguageTag(): string;
|
|
787
658
|
|
|
788
|
-
/**
|
|
789
|
-
* Returns a locale for the specified IETF BCP 47 language tag string.
|
|
790
|
-
*
|
|
791
|
-
* <p>If the specified language tag contains any ill-formed subtags,
|
|
792
|
-
* the first such subtag and all following subtags are ignored. Compare
|
|
793
|
-
* to {@link Locale.Builder#setLanguageTag} which throws an exception
|
|
794
|
-
* in this case.
|
|
795
|
-
*
|
|
796
|
-
* <p>The following <b>conversions</b> are performed:<ul>
|
|
797
|
-
*
|
|
798
|
-
* <li>The language code "und" is mapped to language "".
|
|
799
|
-
*
|
|
800
|
-
* <li>The language codes "he", "yi", and "id" are mapped to "iw",
|
|
801
|
-
* "ji", and "in" respectively. (This is the same canonicalization
|
|
802
|
-
* that's done in Locale's constructors.)
|
|
803
|
-
*
|
|
804
|
-
* <li>The portion of a private use subtag prefixed by "lvariant",
|
|
805
|
-
* if any, is removed and appended to the variant field in the
|
|
806
|
-
* result locale (without case normalization). If it is then
|
|
807
|
-
* empty, the private use subtag is discarded:
|
|
808
|
-
*
|
|
809
|
-
* <pre>
|
|
810
|
-
* Locale loc;
|
|
811
|
-
* loc = Locale.forLanguageTag("en-US-x-lvariant-POSIX");
|
|
812
|
-
* loc.getVariant(); // returns "POSIX"
|
|
813
|
-
* loc.getExtension('x'); // returns null
|
|
814
|
-
*
|
|
815
|
-
* loc = Locale.forLanguageTag("de-POSIX-x-URP-lvariant-Abc-Def");
|
|
816
|
-
* loc.getVariant(); // returns "POSIX_Abc_Def"
|
|
817
|
-
* loc.getExtension('x'); // returns "urp"
|
|
818
|
-
* </pre>
|
|
819
|
-
*
|
|
820
|
-
* <li>When the languageTag argument contains an extlang subtag,
|
|
821
|
-
* the first such subtag is used as the language, and the primary
|
|
822
|
-
* language subtag and other extlang subtags are ignored:
|
|
823
|
-
*
|
|
824
|
-
* <pre>
|
|
825
|
-
* Locale.forLanguageTag("ar-aao").getLanguage(); // returns "aao"
|
|
826
|
-
* Locale.forLanguageTag("en-abc-def-us").toString(); // returns "abc_US"
|
|
827
|
-
* </pre>
|
|
828
|
-
*
|
|
829
|
-
* <li>Case is normalized except for variant tags, which are left
|
|
830
|
-
* unchanged. Language is normalized to lower case, script to
|
|
831
|
-
* title case, country to upper case, and extensions to lower
|
|
832
|
-
* case.
|
|
833
|
-
*
|
|
834
|
-
* <li>If, after processing, the locale would exactly match either
|
|
835
|
-
* ja_JP_JP or th_TH_TH with no extensions, the appropriate
|
|
836
|
-
* extensions are added as though the constructor had been called:
|
|
837
|
-
*
|
|
838
|
-
* <pre>
|
|
839
|
-
* Locale.forLanguageTag("ja-JP-x-lvariant-JP").toLanguageTag();
|
|
840
|
-
* // returns "ja-JP-u-ca-japanese-x-lvariant-JP"
|
|
841
|
-
* Locale.forLanguageTag("th-TH-x-lvariant-TH").toLanguageTag();
|
|
842
|
-
* // returns "th-TH-u-nu-thai-x-lvariant-TH"
|
|
843
|
-
* </pre></ul>
|
|
844
|
-
*
|
|
845
|
-
* <p>This implements the 'Language-Tag' production of BCP47, and
|
|
846
|
-
* so supports grandfathered (regular and irregular) as well as
|
|
847
|
-
* private use language tags. Stand alone private use tags are
|
|
848
|
-
* represented as empty language and extension 'x-whatever',
|
|
849
|
-
* and grandfathered tags are converted to their canonical replacements
|
|
850
|
-
* where they exist.
|
|
851
|
-
*
|
|
852
|
-
* <p>Grandfathered tags with canonical replacements are as follows:
|
|
853
|
-
*
|
|
854
|
-
* <table summary="Grandfathered tags with canonical replacements">
|
|
855
|
-
* <tbody align="center">
|
|
856
|
-
* <tr><th>grandfathered tag</th><th> </th><th>modern replacement</th></tr>
|
|
857
|
-
* <tr><td>art-lojban</td><td> </td><td>jbo</td></tr>
|
|
858
|
-
* <tr><td>i-ami</td><td> </td><td>ami</td></tr>
|
|
859
|
-
* <tr><td>i-bnn</td><td> </td><td>bnn</td></tr>
|
|
860
|
-
* <tr><td>i-hak</td><td> </td><td>hak</td></tr>
|
|
861
|
-
* <tr><td>i-klingon</td><td> </td><td>tlh</td></tr>
|
|
862
|
-
* <tr><td>i-lux</td><td> </td><td>lb</td></tr>
|
|
863
|
-
* <tr><td>i-navajo</td><td> </td><td>nv</td></tr>
|
|
864
|
-
* <tr><td>i-pwn</td><td> </td><td>pwn</td></tr>
|
|
865
|
-
* <tr><td>i-tao</td><td> </td><td>tao</td></tr>
|
|
866
|
-
* <tr><td>i-tay</td><td> </td><td>tay</td></tr>
|
|
867
|
-
* <tr><td>i-tsu</td><td> </td><td>tsu</td></tr>
|
|
868
|
-
* <tr><td>no-bok</td><td> </td><td>nb</td></tr>
|
|
869
|
-
* <tr><td>no-nyn</td><td> </td><td>nn</td></tr>
|
|
870
|
-
* <tr><td>sgn-BE-FR</td><td> </td><td>sfb</td></tr>
|
|
871
|
-
* <tr><td>sgn-BE-NL</td><td> </td><td>vgt</td></tr>
|
|
872
|
-
* <tr><td>sgn-CH-DE</td><td> </td><td>sgg</td></tr>
|
|
873
|
-
* <tr><td>zh-guoyu</td><td> </td><td>cmn</td></tr>
|
|
874
|
-
* <tr><td>zh-hakka</td><td> </td><td>hak</td></tr>
|
|
875
|
-
* <tr><td>zh-min-nan</td><td> </td><td>nan</td></tr>
|
|
876
|
-
* <tr><td>zh-xiang</td><td> </td><td>hsn</td></tr>
|
|
877
|
-
* </tbody>
|
|
878
|
-
* </table>
|
|
879
|
-
*
|
|
880
|
-
* <p>Grandfathered tags with no modern replacement will be
|
|
881
|
-
* converted as follows:
|
|
882
|
-
*
|
|
883
|
-
* <table summary="Grandfathered tags with no modern replacement">
|
|
884
|
-
* <tbody align="center">
|
|
885
|
-
* <tr><th>grandfathered tag</th><th> </th><th>converts to</th></tr>
|
|
886
|
-
* <tr><td>cel-gaulish</td><td> </td><td>xtg-x-cel-gaulish</td></tr>
|
|
887
|
-
* <tr><td>en-GB-oed</td><td> </td><td>en-GB-x-oed</td></tr>
|
|
888
|
-
* <tr><td>i-default</td><td> </td><td>en-x-i-default</td></tr>
|
|
889
|
-
* <tr><td>i-enochian</td><td> </td><td>und-x-i-enochian</td></tr>
|
|
890
|
-
* <tr><td>i-mingo</td><td> </td><td>see-x-i-mingo</td></tr>
|
|
891
|
-
* <tr><td>zh-min</td><td> </td><td>nan-x-zh-min</td></tr>
|
|
892
|
-
* </tbody>
|
|
893
|
-
* </table>
|
|
894
|
-
*
|
|
895
|
-
* <p>For a list of all grandfathered tags, see the
|
|
896
|
-
* IANA Language Subtag Registry (search for "Type: grandfathered").
|
|
897
|
-
*
|
|
898
|
-
* <p><b>Note</b>: there is no guarantee that <code>toLanguageTag</code>
|
|
899
|
-
* and <code>forLanguageTag</code> will round-trip.
|
|
900
|
-
* @param languageTag the language tag
|
|
901
|
-
* @return The locale that best represents the language tag.
|
|
902
|
-
* @throws NullPointerException if <code>languageTag</code> is <code>null</code>
|
|
903
|
-
* @see #toLanguageTag()
|
|
904
|
-
* @see java.util.Locale.Builder#setLanguageTag(String)
|
|
905
|
-
* @since 1.7
|
|
906
|
-
*/
|
|
907
|
-
forLanguageTag(languageTag: String | string): Locale;
|
|
908
|
-
|
|
909
659
|
/**
|
|
910
660
|
* Returns a three-letter abbreviation of this locale's language.
|
|
911
661
|
* If the language matches an ISO 639-1 two-letter code, the
|
|
@@ -1113,100 +863,6 @@ export type Locale = Object &
|
|
|
1113
863
|
*/
|
|
1114
864
|
equals(obj: unknown): boolean;
|
|
1115
865
|
|
|
1116
|
-
/**
|
|
1117
|
-
* Returns a list of matching {@code Locale} instances using the filtering
|
|
1118
|
-
* mechanism defined in RFC 4647.
|
|
1119
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1120
|
-
* @param locales {@code Locale} instances used for matching
|
|
1121
|
-
* @param mode filtering mode
|
|
1122
|
-
* @return a list of {@code Locale} instances for matching language tags
 sorted in descending order based on priority or weight, or an empty
 list if nothing matches. The list is modifiable.
|
|
1123
|
-
* @throws NullPointerException if {@code priorityList} or {@code locales}
 is {@code null}
|
|
1124
|
-
* @throws IllegalArgumentException if one or more extended language ranges
 are included in the given list when
 {@link FilteringMode#REJECT_EXTENDED_RANGES} is specified
|
|
1125
|
-
* @since 1.8
|
|
1126
|
-
*/
|
|
1127
|
-
filter(
|
|
1128
|
-
priorityList: List | unknown[],
|
|
1129
|
-
locales: Collection | unknown[],
|
|
1130
|
-
mode: FilteringMode
|
|
1131
|
-
): List;
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* Returns a list of matching {@code Locale} instances using the filtering
|
|
1135
|
-
* mechanism defined in RFC 4647. This is equivalent to
|
|
1136
|
-
* {@link #filter(List, Collection, FilteringMode)} when {@code mode} is
|
|
1137
|
-
* {@link FilteringMode#AUTOSELECT_FILTERING}.
|
|
1138
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1139
|
-
* @param locales {@code Locale} instances used for matching
|
|
1140
|
-
* @return a list of {@code Locale} instances for matching language tags
 sorted in descending order based on priority or weight, or an empty
 list if nothing matches. The list is modifiable.
|
|
1141
|
-
* @throws NullPointerException if {@code priorityList} or {@code locales}
 is {@code null}
|
|
1142
|
-
* @since 1.8
|
|
1143
|
-
*/
|
|
1144
|
-
filter(
|
|
1145
|
-
priorityList: List | unknown[],
|
|
1146
|
-
locales: Collection | unknown[]
|
|
1147
|
-
): List;
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* Returns a list of matching languages tags using the basic filtering
|
|
1151
|
-
* mechanism defined in RFC 4647.
|
|
1152
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1153
|
-
* @param tags language tags
|
|
1154
|
-
* @param mode filtering mode
|
|
1155
|
-
* @return a list of matching language tags sorted in descending order
 based on priority or weight, or an empty list if nothing matches.
 The list is modifiable.
|
|
1156
|
-
* @throws NullPointerException if {@code priorityList} or {@code tags} is
 {@code null}
|
|
1157
|
-
* @throws IllegalArgumentException if one or more extended language ranges
 are included in the given list when
 {@link FilteringMode#REJECT_EXTENDED_RANGES} is specified
|
|
1158
|
-
* @since 1.8
|
|
1159
|
-
*/
|
|
1160
|
-
filterTags(
|
|
1161
|
-
priorityList: List | unknown[],
|
|
1162
|
-
tags: Collection | unknown[],
|
|
1163
|
-
mode: FilteringMode
|
|
1164
|
-
): List;
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Returns a list of matching languages tags using the basic filtering
|
|
1168
|
-
* mechanism defined in RFC 4647. This is equivalent to
|
|
1169
|
-
* {@link #filterTags(List, Collection, FilteringMode)} when {@code mode}
|
|
1170
|
-
* is {@link FilteringMode#AUTOSELECT_FILTERING}.
|
|
1171
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1172
|
-
* @param tags language tags
|
|
1173
|
-
* @return a list of matching language tags sorted in descending order
 based on priority or weight, or an empty list if nothing matches.
 The list is modifiable.
|
|
1174
|
-
* @throws NullPointerException if {@code priorityList} or {@code tags} is
 {@code null}
|
|
1175
|
-
* @since 1.8
|
|
1176
|
-
*/
|
|
1177
|
-
filterTags(
|
|
1178
|
-
priorityList: List | unknown[],
|
|
1179
|
-
tags: Collection | unknown[]
|
|
1180
|
-
): List;
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Returns a {@code Locale} instance for the best-matching language
|
|
1184
|
-
* tag using the lookup mechanism defined in RFC 4647.
|
|
1185
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1186
|
-
* @param locales {@code Locale} instances used for matching
|
|
1187
|
-
* @return the best matching <code>Locale</code> instance chosen based on
 priority or weight, or {@code null} if nothing matches.
|
|
1188
|
-
* @throws NullPointerException if {@code priorityList} or {@code tags} is
 {@code null}
|
|
1189
|
-
* @since 1.8
|
|
1190
|
-
*/
|
|
1191
|
-
lookup(
|
|
1192
|
-
priorityList: List | unknown[],
|
|
1193
|
-
locales: Collection | unknown[]
|
|
1194
|
-
): Locale;
|
|
1195
|
-
|
|
1196
|
-
/**
|
|
1197
|
-
* Returns the best-matching language tag using the lookup mechanism
|
|
1198
|
-
* defined in RFC 4647.
|
|
1199
|
-
* @param priorityList user's Language Priority List in which each language
 tag is sorted in descending order based on priority or weight
|
|
1200
|
-
* @param tags language tangs used for matching
|
|
1201
|
-
* @return the best matching language tag chosen based on priority or
 weight, or {@code null} if nothing matches.
|
|
1202
|
-
* @throws NullPointerException if {@code priorityList} or {@code tags} is
 {@code null}
|
|
1203
|
-
* @since 1.8
|
|
1204
|
-
*/
|
|
1205
|
-
lookupTag(
|
|
1206
|
-
priorityList: List | unknown[],
|
|
1207
|
-
tags: Collection | unknown[]
|
|
1208
|
-
): string;
|
|
1209
|
-
|
|
1210
866
|
/**
|
|
1211
867
|
* Useful constant for language.
|
|
1212
868
|
|
|
@@ -5,11 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
getDefault: function getDefault() {},
|
|
9
|
-
setDefault: function setDefault() {},
|
|
10
|
-
getAvailableLocales: function getAvailableLocales() {},
|
|
11
|
-
getISOCountries: function getISOCountries() {},
|
|
12
|
-
getISOLanguages: function getISOLanguages() {},
|
|
13
8
|
getLanguage: function getLanguage() {},
|
|
14
9
|
getScript: function getScript() {},
|
|
15
10
|
getCountry: function getCountry() {},
|
|
@@ -23,7 +18,6 @@ var _default = {
|
|
|
23
18
|
getUnicodeLocaleKeys: function getUnicodeLocaleKeys() {},
|
|
24
19
|
toString: function toString() {},
|
|
25
20
|
toLanguageTag: function toLanguageTag() {},
|
|
26
|
-
forLanguageTag: function forLanguageTag() {},
|
|
27
21
|
getISO3Language: function getISO3Language() {},
|
|
28
22
|
getISO3Country: function getISO3Country() {},
|
|
29
23
|
getDisplayLanguage: function getDisplayLanguage() {},
|
|
@@ -33,10 +27,6 @@ var _default = {
|
|
|
33
27
|
getDisplayName: function getDisplayName() {},
|
|
34
28
|
clone: function clone() {},
|
|
35
29
|
hashCode: function hashCode() {},
|
|
36
|
-
equals: function equals() {}
|
|
37
|
-
filter: function filter() {},
|
|
38
|
-
filterTags: function filterTags() {},
|
|
39
|
-
lookup: function lookup() {},
|
|
40
|
-
lookupTag: function lookupTag() {}
|
|
30
|
+
equals: function equals() {}
|
|
41
31
|
};
|
|
42
32
|
exports["default"] = _default;
|
|
@@ -25,33 +25,6 @@ import type { String } from "../../lang/String";
|
|
|
25
25
|
* @since 1.8
|
|
26
26
|
*/
|
|
27
27
|
export type Optional = Object & {
|
|
28
|
-
/**
|
|
29
|
-
* Returns an empty {@code Optional} instance. No value is present for this
|
|
30
|
-
* Optional.
|
|
31
|
-
* @apiNote Though it may be tempting to do so, avoid testing if an object
 is empty by comparing with {@code ==} against instances returned by
 {@code Option.empty()}. There is no guarantee that it is a singleton.
 Instead, use {@link #isPresent()}.
|
|
32
|
-
* @param <T> Type of the non-existent value
|
|
33
|
-
* @return an empty {@code Optional}
|
|
34
|
-
*/
|
|
35
|
-
empty(): Optional;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Returns an {@code Optional} with the specified present non-null value.
|
|
39
|
-
* @param <T> the class of the value
|
|
40
|
-
* @param value the value to be present, which must be non-null
|
|
41
|
-
* @return an {@code Optional} with the value present
|
|
42
|
-
* @throws NullPointerException if value is null
|
|
43
|
-
*/
|
|
44
|
-
of(value: unknown): Optional;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Returns an {@code Optional} describing the specified value, if non-null,
|
|
48
|
-
* otherwise returns an empty {@code Optional}.
|
|
49
|
-
* @param <T> the class of the value
|
|
50
|
-
* @param value the possibly-null value to describe
|
|
51
|
-
* @return an {@code Optional} with a present value if the specified value
 is non-null, otherwise an empty {@code Optional}
|
|
52
|
-
*/
|
|
53
|
-
ofNullable(value: unknown): Optional;
|
|
54
|
-
|
|
55
28
|
/**
|
|
56
29
|
* If a value is present in this {@code Optional}, returns the value,
|
|
57
30
|
* otherwise throws {@code NoSuchElementException}.
|
|
@@ -5,9 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
empty: function empty() {},
|
|
9
|
-
of: function of() {},
|
|
10
|
-
ofNullable: function ofNullable() {},
|
|
11
8
|
get: function get() {},
|
|
12
9
|
isPresent: function isPresent() {},
|
|
13
10
|
ifPresent: function ifPresent() {},
|
|
@@ -24,21 +24,6 @@ import type { String } from "../../lang/String";
|
|
|
24
24
|
* @since 1.8
|
|
25
25
|
*/
|
|
26
26
|
export type OptionalDouble = Object & {
|
|
27
|
-
/**
|
|
28
|
-
* Returns an empty {@code OptionalDouble} instance. No value is present for this
|
|
29
|
-
* OptionalDouble.
|
|
30
|
-
* @apiNote Though it may be tempting to do so, avoid testing if an object
 is empty by comparing with {@code ==} against instances returned by
 {@code Option.empty()}. There is no guarantee that it is a singleton.
 Instead, use {@link #isPresent()}.
|
|
31
|
-
* @return an empty {@code OptionalDouble}.
|
|
32
|
-
*/
|
|
33
|
-
empty(): OptionalDouble;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Return an {@code OptionalDouble} with the specified value present.
|
|
37
|
-
* @param value the value to be present
|
|
38
|
-
* @return an {@code OptionalDouble} with the value present
|
|
39
|
-
*/
|
|
40
|
-
of(value: number): OptionalDouble;
|
|
41
|
-
|
|
42
27
|
/**
|
|
43
28
|
* If a value is present in this {@code OptionalDouble}, returns the value,
|
|
44
29
|
* otherwise throws {@code NoSuchElementException}.
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
empty: function empty() {},
|
|
9
|
-
of: function of() {},
|
|
10
8
|
getAsDouble: function getAsDouble() {},
|
|
11
9
|
isPresent: function isPresent() {},
|
|
12
10
|
ifPresent: function ifPresent() {},
|
|
@@ -23,21 +23,6 @@ import type { String } from "../../lang/String";
|
|
|
23
23
|
* @since 1.8
|
|
24
24
|
*/
|
|
25
25
|
export type OptionalInt = Object & {
|
|
26
|
-
/**
|
|
27
|
-
* Returns an empty {@code OptionalInt} instance. No value is present for this
|
|
28
|
-
* OptionalInt.
|
|
29
|
-
* @apiNote Though it may be tempting to do so, avoid testing if an object
 is empty by comparing with {@code ==} against instances returned by
 {@code Option.empty()}. There is no guarantee that it is a singleton.
 Instead, use {@link #isPresent()}.
|
|
30
|
-
* @return an empty {@code OptionalInt}
|
|
31
|
-
*/
|
|
32
|
-
empty(): OptionalInt;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Return an {@code OptionalInt} with the specified value present.
|
|
36
|
-
* @param value the value to be present
|
|
37
|
-
* @return an {@code OptionalInt} with the value present
|
|
38
|
-
*/
|
|
39
|
-
of(value: number): OptionalInt;
|
|
40
|
-
|
|
41
26
|
/**
|
|
42
27
|
* If a value is present in this {@code OptionalInt}, returns the value,
|
|
43
28
|
* otherwise throws {@code NoSuchElementException}.
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
empty: function empty() {},
|
|
9
|
-
of: function of() {},
|
|
10
8
|
getAsInt: function getAsInt() {},
|
|
11
9
|
isPresent: function isPresent() {},
|
|
12
10
|
ifPresent: function ifPresent() {},
|
|
@@ -24,21 +24,6 @@ import type { String } from "../../lang/String";
|
|
|
24
24
|
* @since 1.8
|
|
25
25
|
*/
|
|
26
26
|
export type OptionalLong = Object & {
|
|
27
|
-
/**
|
|
28
|
-
* Returns an empty {@code OptionalLong} instance. No value is present for this
|
|
29
|
-
* OptionalLong.
|
|
30
|
-
* @apiNote Though it may be tempting to do so, avoid testing if an object
 is empty by comparing with {@code ==} against instances returned by
 {@code Option.empty()}. There is no guarantee that it is a singleton.
 Instead, use {@link #isPresent()}.
|
|
31
|
-
* @return an empty {@code OptionalLong}.
|
|
32
|
-
*/
|
|
33
|
-
empty(): OptionalLong;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Return an {@code OptionalLong} with the specified value present.
|
|
37
|
-
* @param value the value to be present
|
|
38
|
-
* @return an {@code OptionalLong} with the value present
|
|
39
|
-
*/
|
|
40
|
-
of(value: number): OptionalLong;
|
|
41
|
-
|
|
42
27
|
/**
|
|
43
28
|
* If a value is present in this {@code OptionalLong}, returns the value,
|
|
44
29
|
* otherwise throws {@code NoSuchElementException}.
|
|
@@ -5,8 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _default = {
|
|
8
|
-
empty: function empty() {},
|
|
9
|
-
of: function of() {},
|
|
10
8
|
getAsLong: function getAsLong() {},
|
|
11
9
|
isPresent: function isPresent() {},
|
|
12
10
|
ifPresent: function ifPresent() {},
|
|
@@ -329,22 +329,6 @@ export type TimeZone = Object &
|
|
|
329
329
|
*/
|
|
330
330
|
inDaylightTime(date: Date): boolean;
|
|
331
331
|
|
|
332
|
-
/**
|
|
333
|
-
* Gets the <code>TimeZone</code> for the given ID.
|
|
334
|
-
* @param ID the ID for a <code>TimeZone</code>, either an abbreviation
 such as "PST", a full name such as "America/Los_Angeles", or a custom
 ID such as "GMT-8:00". Note that the support of abbreviations is
 for JDK 1.1.x compatibility only and full names should be used.
|
|
335
|
-
* @return the specified <code>TimeZone</code>, or the GMT zone if the given ID
 cannot be understood.
|
|
336
|
-
*/
|
|
337
|
-
getTimeZone(ID: String | string): TimeZone;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Gets the {@code TimeZone} for the given {@code zoneId}.
|
|
341
|
-
* @param zoneId a {@link ZoneId} from which the time zone ID is obtained
|
|
342
|
-
* @return the specified {@code TimeZone}, or the GMT zone if the given ID
 cannot be understood.
|
|
343
|
-
* @throws NullPointerException if {@code zoneId} is {@code null}
|
|
344
|
-
* @since 1.8
|
|
345
|
-
*/
|
|
346
|
-
getTimeZone(zoneId: ZoneId): TimeZone;
|
|
347
|
-
|
|
348
332
|
/**
|
|
349
333
|
* Converts this {@code TimeZone} object to a {@code ZoneId}.
|
|
350
334
|
* @return a {@code ZoneId} representing the same time zone as this
 {@code TimeZone}
|
|
@@ -352,55 +336,6 @@ export type TimeZone = Object &
|
|
|
352
336
|
*/
|
|
353
337
|
toZoneId(): ZoneId;
|
|
354
338
|
|
|
355
|
-
/**
|
|
356
|
-
* Gets the available IDs according to the given time zone offset in milliseconds.
|
|
357
|
-
* @param rawOffset the given time zone GMT offset in milliseconds.
|
|
358
|
-
* @return an array of IDs, where the time zone for that ID has
 the specified GMT offset. For example, "America/Phoenix" and "America/Denver"
 both have GMT-07:00, but differ in daylight saving behavior.
|
|
359
|
-
* @see #getRawOffset()
|
|
360
|
-
*/
|
|
361
|
-
getAvailableIDs(rawOffset: number): string;
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Gets all the available IDs supported.
|
|
365
|
-
* @return an array of IDs.
|
|
366
|
-
*/
|
|
367
|
-
getAvailableIDs(): string;
|
|
368
|
-
|
|
369
|
-
/**
|
|
370
|
-
* Gets the default {@code TimeZone} of the Java virtual machine. If the
|
|
371
|
-
* cached default {@code TimeZone} is available, its clone is returned.
|
|
372
|
-
* Otherwise, the method takes the following steps to determine the default
|
|
373
|
-
* time zone.
|
|
374
|
-
*
|
|
375
|
-
* <ul>
|
|
376
|
-
* <li>Use the {@code user.timezone} property value as the default
|
|
377
|
-
* time zone ID if it's available.</li>
|
|
378
|
-
* <li>Detect the platform time zone ID. The source of the
|
|
379
|
-
* platform time zone and ID mapping may vary with implementation.</li>
|
|
380
|
-
* <li>Use {@code GMT} as the last resort if the given or detected
|
|
381
|
-
* time zone ID is unknown.</li>
|
|
382
|
-
* </ul>
|
|
383
|
-
*
|
|
384
|
-
* <p>The default {@code TimeZone} created from the ID is cached,
|
|
385
|
-
* and its clone is returned. The {@code user.timezone} property
|
|
386
|
-
* value is set to the ID upon return.
|
|
387
|
-
* @return the default {@code TimeZone}
|
|
388
|
-
* @see #setDefault(TimeZone)
|
|
389
|
-
*/
|
|
390
|
-
getDefault(): TimeZone;
|
|
391
|
-
|
|
392
|
-
/**
|
|
393
|
-
* Sets the {@code TimeZone} that is returned by the {@code getDefault}
|
|
394
|
-
* method. {@code zone} is cached. If {@code zone} is null, the cached
|
|
395
|
-
* default {@code TimeZone} is cleared. This method doesn't change the value
|
|
396
|
-
* of the {@code user.timezone} property.
|
|
397
|
-
* @param zone the new default {@code TimeZone}, or null
|
|
398
|
-
* @throws SecurityException if the security manager's {@code checkPermission}
 denies {@code PropertyPermission("user.timezone",
 "write")}
|
|
399
|
-
* @see #getDefault
|
|
400
|
-
* @see PropertyPermission
|
|
401
|
-
*/
|
|
402
|
-
setDefault(zone: TimeZone): void;
|
|
403
|
-
|
|
404
339
|
/**
|
|
405
340
|
* Returns true if this zone has the same rule and offset as another zone.
|
|
406
341
|
* That is, if this zone differs only in ID, if at all. Returns false
|
|
@@ -15,11 +15,7 @@ var _default = {
|
|
|
15
15
|
useDaylightTime: function useDaylightTime() {},
|
|
16
16
|
observesDaylightTime: function observesDaylightTime() {},
|
|
17
17
|
inDaylightTime: function inDaylightTime() {},
|
|
18
|
-
getTimeZone: function getTimeZone() {},
|
|
19
18
|
toZoneId: function toZoneId() {},
|
|
20
|
-
getAvailableIDs: function getAvailableIDs() {},
|
|
21
|
-
getDefault: function getDefault() {},
|
|
22
|
-
setDefault: function setDefault() {},
|
|
23
19
|
hasSameRules: function hasSameRules() {},
|
|
24
20
|
clone: function clone() {}
|
|
25
21
|
};
|