@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.
Files changed (125) hide show
  1. package/package.json +1 -1
  2. package/types/java/io/File/index.d.ts +0 -120
  3. package/types/java/io/File/index.js +0 -2
  4. package/types/java/lang/Boolean/index.d.ts +0 -123
  5. package/types/java/lang/Boolean/index.js +1 -8
  6. package/types/java/lang/Class/index.d.ts +2 -93
  7. package/types/java/lang/Class/index.js +0 -1
  8. package/types/java/lang/ClassLoader/index.d.ts +0 -91
  9. package/types/java/lang/ClassLoader/index.js +0 -5
  10. package/types/java/lang/Double/index.d.ts +0 -541
  11. package/types/java/lang/Double/index.js +2 -13
  12. package/types/java/lang/Enum/index.d.ts +0 -23
  13. package/types/java/lang/Enum/index.js +0 -1
  14. package/types/java/lang/Float/index.d.ts +0 -494
  15. package/types/java/lang/Float/index.js +2 -13
  16. package/types/java/lang/Integer/index.d.ts +0 -780
  17. package/types/java/lang/Integer/index.js +2 -29
  18. package/types/java/lang/Long/index.d.ts +0 -788
  19. package/types/java/lang/Long/index.js +2 -28
  20. package/types/java/lang/Package/index.d.ts +0 -28
  21. package/types/java/lang/Package/index.js +0 -2
  22. package/types/java/lang/String/index.d.ts +0 -193
  23. package/types/java/lang/String/index.js +0 -4
  24. package/types/java/lang/reflect/AccessibleObject/index.d.ts +0 -25
  25. package/types/java/math/BigDecimal/index.d.ts +1 -40
  26. package/types/java/math/BigDecimal/index.js +0 -1
  27. package/types/java/math/BigInteger/index.d.ts +0 -25
  28. package/types/java/math/BigInteger/index.js +0 -2
  29. package/types/java/net/InetAddress/index.d.ts +0 -134
  30. package/types/java/net/InetAddress/index.js +1 -6
  31. package/types/java/net/NetworkInterface/index.d.ts +0 -50
  32. package/types/java/net/NetworkInterface/index.js +0 -4
  33. package/types/java/net/URI/index.d.ts +0 -22
  34. package/types/java/net/URI/index.js +0 -1
  35. package/types/java/net/URL/index.d.ts +0 -23
  36. package/types/java/net/URL/index.js +1 -2
  37. package/types/java/net/URLConnection/index.d.ts +0 -125
  38. package/types/java/net/URLConnection/index.js +1 -10
  39. package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +0 -136
  40. package/types/java/nio/channels/AsynchronousFileChannel/index.js +0 -1
  41. package/types/java/nio/channels/FileChannel/index.d.ts +0 -128
  42. package/types/java/nio/channels/FileChannel/index.js +0 -1
  43. package/types/java/nio/charset/Charset/index.d.ts +1 -58
  44. package/types/java/nio/charset/Charset/index.js +0 -4
  45. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +0 -12
  46. package/types/java/nio/file/spi/FileSystemProvider/index.js +0 -1
  47. package/types/java/text/DateFormat/index.d.ts +0 -130
  48. package/types/java/text/DateFormat/index.js +0 -5
  49. package/types/java/text/DateFormatSymbols/index.d.ts +0 -45
  50. package/types/java/text/DateFormatSymbols/index.js +0 -2
  51. package/types/java/text/NumberFormat/index.d.ts +0 -123
  52. package/types/java/text/NumberFormat/index.js +0 -6
  53. package/types/java/time/Clock/index.d.ts +1 -162
  54. package/types/java/time/Clock/index.js +0 -8
  55. package/types/java/time/Duration/index.d.ts +3 -193
  56. package/types/java/time/Duration/index.js +0 -10
  57. package/types/java/time/Instant/index.d.ts +0 -101
  58. package/types/java/time/Instant/index.js +0 -5
  59. package/types/java/time/LocalDate/index.d.ts +4 -134
  60. package/types/java/time/LocalDate/index.js +0 -6
  61. package/types/java/time/LocalDateTime/index.d.ts +7 -285
  62. package/types/java/time/LocalDateTime/index.js +0 -6
  63. package/types/java/time/LocalTime/index.d.ts +2 -146
  64. package/types/java/time/LocalTime/index.js +0 -6
  65. package/types/java/time/OffsetDateTime/index.d.ts +7 -177
  66. package/types/java/time/OffsetDateTime/index.js +0 -6
  67. package/types/java/time/OffsetTime/index.d.ts +3 -141
  68. package/types/java/time/OffsetTime/index.js +0 -5
  69. package/types/java/time/Period/index.d.ts +1 -135
  70. package/types/java/time/Period/index.js +0 -8
  71. package/types/java/time/ZoneId/index.d.ts +1 -121
  72. package/types/java/time/ZoneId/index.js +0 -5
  73. package/types/java/time/ZoneOffset/index.d.ts +1 -104
  74. package/types/java/time/ZoneOffset/index.js +0 -6
  75. package/types/java/time/ZonedDateTime/index.d.ts +6 -284
  76. package/types/java/time/ZonedDateTime/index.js +0 -7
  77. package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -215
  78. package/types/java/time/format/DateTimeFormatter/index.js +0 -6
  79. package/types/java/time/format/DecimalStyle/index.d.ts +0 -34
  80. package/types/java/time/format/DecimalStyle/index.js +0 -3
  81. package/types/java/time/temporal/ValueRange/index.d.ts +0 -43
  82. package/types/java/time/temporal/ValueRange/index.js +0 -1
  83. package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +2 -19
  84. package/types/java/time/zone/ZoneOffsetTransition/index.js +0 -1
  85. package/types/java/time/zone/ZoneRules/index.d.ts +2 -28
  86. package/types/java/time/zone/ZoneRules/index.js +0 -1
  87. package/types/java/util/Calendar/index.d.ts +2 -67
  88. package/types/java/util/Calendar/index.js +0 -3
  89. package/types/java/util/Comparator/index.d.ts +16 -16
  90. package/types/java/util/Currency/index.d.ts +0 -38
  91. package/types/java/util/Currency/index.js +0 -2
  92. package/types/java/util/Date/index.d.ts +0 -160
  93. package/types/java/util/Date/index.js +0 -3
  94. package/types/java/util/Locale/index.d.ts +0 -344
  95. package/types/java/util/Locale/index.js +1 -11
  96. package/types/java/util/Optional/index.d.ts +0 -27
  97. package/types/java/util/Optional/index.js +0 -3
  98. package/types/java/util/OptionalDouble/index.d.ts +0 -15
  99. package/types/java/util/OptionalDouble/index.js +0 -2
  100. package/types/java/util/OptionalInt/index.d.ts +0 -15
  101. package/types/java/util/OptionalInt/index.js +0 -2
  102. package/types/java/util/OptionalLong/index.d.ts +0 -15
  103. package/types/java/util/OptionalLong/index.js +0 -2
  104. package/types/java/util/TimeZone/index.d.ts +0 -65
  105. package/types/java/util/TimeZone/index.js +0 -4
  106. package/types/javax/jcr/PropertyType/index.d.ts +2 -18
  107. package/types/javax/jcr/PropertyType/index.js +1 -4
  108. package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +2 -19
  109. package/types/javax/jcr/version/OnParentVersionAction/index.js +1 -4
  110. package/types/java/net/ContentHandler/index.d.ts +0 -70
  111. package/types/java/net/ContentHandler/index.js +0 -10
  112. package/types/java/net/ContentHandlerFactory/index.d.ts +0 -26
  113. package/types/java/net/ContentHandlerFactory/index.js +0 -10
  114. package/types/java/net/FileNameMap/index.d.ts +0 -16
  115. package/types/java/net/FileNameMap/index.js +0 -10
  116. package/types/java/net/URLStreamHandler/index.d.ts +0 -199
  117. package/types/java/net/URLStreamHandler/index.js +0 -19
  118. package/types/java/net/URLStreamHandlerFactory/index.d.ts +0 -24
  119. package/types/java/net/URLStreamHandlerFactory/index.js +0 -10
  120. package/types/java/time/format/FormatStyle/index.d.ts +0 -14
  121. package/types/java/time/format/FormatStyle/index.js +0 -13
  122. package/types/java/util/Locale.Category/index.d.ts +0 -12
  123. package/types/java/util/Locale.Category/index.js +0 -11
  124. package/types/java/util/Locale.FilteringMode/index.d.ts +0 -97
  125. 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&#xA; 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&#xA; if a security manager exists and its&#xA; <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&#xA; 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&mdash; 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>&nbsp;</th><th>modern replacement</th></tr>
857
- * <tr><td>art-lojban</td><td>&nbsp;</td><td>jbo</td></tr>
858
- * <tr><td>i-ami</td><td>&nbsp;</td><td>ami</td></tr>
859
- * <tr><td>i-bnn</td><td>&nbsp;</td><td>bnn</td></tr>
860
- * <tr><td>i-hak</td><td>&nbsp;</td><td>hak</td></tr>
861
- * <tr><td>i-klingon</td><td>&nbsp;</td><td>tlh</td></tr>
862
- * <tr><td>i-lux</td><td>&nbsp;</td><td>lb</td></tr>
863
- * <tr><td>i-navajo</td><td>&nbsp;</td><td>nv</td></tr>
864
- * <tr><td>i-pwn</td><td>&nbsp;</td><td>pwn</td></tr>
865
- * <tr><td>i-tao</td><td>&nbsp;</td><td>tao</td></tr>
866
- * <tr><td>i-tay</td><td>&nbsp;</td><td>tay</td></tr>
867
- * <tr><td>i-tsu</td><td>&nbsp;</td><td>tsu</td></tr>
868
- * <tr><td>no-bok</td><td>&nbsp;</td><td>nb</td></tr>
869
- * <tr><td>no-nyn</td><td>&nbsp;</td><td>nn</td></tr>
870
- * <tr><td>sgn-BE-FR</td><td>&nbsp;</td><td>sfb</td></tr>
871
- * <tr><td>sgn-BE-NL</td><td>&nbsp;</td><td>vgt</td></tr>
872
- * <tr><td>sgn-CH-DE</td><td>&nbsp;</td><td>sgg</td></tr>
873
- * <tr><td>zh-guoyu</td><td>&nbsp;</td><td>cmn</td></tr>
874
- * <tr><td>zh-hakka</td><td>&nbsp;</td><td>hak</td></tr>
875
- * <tr><td>zh-min-nan</td><td>&nbsp;</td><td>nan</td></tr>
876
- * <tr><td>zh-xiang</td><td>&nbsp;</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>&nbsp;</th><th>converts to</th></tr>
886
- * <tr><td>cel-gaulish</td><td>&nbsp;</td><td>xtg-x-cel-gaulish</td></tr>
887
- * <tr><td>en-GB-oed</td><td>&nbsp;</td><td>en-GB-x-oed</td></tr>
888
- * <tr><td>i-default</td><td>&nbsp;</td><td>en-x-i-default</td></tr>
889
- * <tr><td>i-enochian</td><td>&nbsp;</td><td>und-x-i-enochian</td></tr>
890
- * <tr><td>i-mingo</td><td>&nbsp;</td><td>see-x-i-mingo</td></tr>
891
- * <tr><td>zh-min</td><td>&nbsp;</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&#xA; 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&#xA; sorted in descending order based on priority or weight, or an empty&#xA; list if nothing matches. The list is modifiable.
1123
- * @throws NullPointerException if {@code priorityList} or {@code locales}&#xA; is {@code null}
1124
- * @throws IllegalArgumentException if one or more extended language ranges&#xA; are included in the given list when&#xA; {@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&#xA; 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&#xA; sorted in descending order based on priority or weight, or an empty&#xA; list if nothing matches. The list is modifiable.
1141
- * @throws NullPointerException if {@code priorityList} or {@code locales}&#xA; 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&#xA; 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&#xA; based on priority or weight, or an empty list if nothing matches.&#xA; The list is modifiable.
1156
- * @throws NullPointerException if {@code priorityList} or {@code tags} is&#xA; {@code null}
1157
- * @throws IllegalArgumentException if one or more extended language ranges&#xA; are included in the given list when&#xA; {@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&#xA; 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&#xA; based on priority or weight, or an empty list if nothing matches.&#xA; The list is modifiable.
1174
- * @throws NullPointerException if {@code priorityList} or {@code tags} is&#xA; {@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&#xA; 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&#xA; priority or weight, or {@code null} if nothing matches.
1188
- * @throws NullPointerException if {@code priorityList} or {@code tags} is&#xA; {@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&#xA; 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&#xA; weight, or {@code null} if nothing matches.
1202
- * @throws NullPointerException if {@code priorityList} or {@code tags} is&#xA; {@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&#xA; is empty by comparing with {@code ==} against instances returned by&#xA; {@code Option.empty()}. There is no guarantee that it is a singleton.&#xA; 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&#xA; 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&#xA; is empty by comparing with {@code ==} against instances returned by&#xA; {@code Option.empty()}. There is no guarantee that it is a singleton.&#xA; 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&#xA; is empty by comparing with {@code ==} against instances returned by&#xA; {@code Option.empty()}. There is no guarantee that it is a singleton.&#xA; 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&#xA; is empty by comparing with {@code ==} against instances returned by&#xA; {@code Option.empty()}. There is no guarantee that it is a singleton.&#xA; 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&#xA; such as "PST", a full name such as "America/Los_Angeles", or a custom&#xA; ID such as "GMT-8:00". Note that the support of abbreviations is&#xA; 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&#xA; 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&#xA; 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&#xA; {@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&#xA; the specified GMT offset. For example, "America/Phoenix" and "America/Denver"&#xA; 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}&#xA; denies {@code PropertyPermission("user.timezone",&#xA; "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
  };