@sitevision/api 2023.2.1 → 2023.2.2-beta.1
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/common/router/index.js +1 -0
- package/package.json +5 -5
- package/server/AliasUtil/index.d.ts +6 -5
- package/server/ArchiveUtil/index.d.ts +24 -23
- package/server/ArraysInstance/index.d.ts +302 -246
- package/server/ArticleUtil/index.d.ts +181 -179
- package/server/AuthenticationUtil/index.d.ts +22 -11
- package/server/BookmarkUtil/index.d.ts +18 -16
- package/server/BuddyIconRenderer/index.d.ts +86 -85
- package/server/BuddyIconRenderer.BuddyIconSize/index.d.ts +15 -15
- package/server/BuddyIconRenderer.BuddyIconSize/index.js +16 -16
- package/server/ClientUtil/index.d.ts +10 -8
- package/server/CollaborationFactory/index.d.ts +6 -6
- package/server/CollaborationGroupFolderUtil/index.d.ts +12 -11
- package/server/CollaborationGroupState/index.d.ts +15 -15
- package/server/CollaborationGroupState/index.js +2 -2
- package/server/CollaborationGroupTemplateUtil/index.d.ts +26 -24
- package/server/CollaborationGroupType/index.d.ts +15 -15
- package/server/CollaborationGroupType/index.js +3 -3
- package/server/CollaborationGroupUtil/index.d.ts +52 -52
- package/server/CollectionsInstance/index.d.ts +145 -105
- package/server/ColorUtil/index.d.ts +12 -8
- package/server/CompoundAndFilterBuilder/index.d.ts +21 -21
- package/server/CompoundComparatorBuilder/index.d.ts +22 -21
- package/server/CompoundOrFilterBuilder/index.d.ts +20 -20
- package/server/ContentNodeUtil/index.d.ts +30 -30
- package/server/CurrencyFactory/index.d.ts +55 -53
- package/server/DateUtil/index.d.ts +55 -47
- package/server/DecorationUtil/index.d.ts +6 -5
- package/server/DeviceUtil/index.d.ts +8 -8
- package/server/DimensionMode/index.d.ts +4 -4
- package/server/DimensionMode/index.js +3 -3
- package/server/DirectoryUtil/index.d.ts +40 -37
- package/server/DocType/index.d.ts +15 -15
- package/server/DocType/index.js +5 -5
- package/server/DocTypeUtil/index.d.ts +4 -4
- package/server/EndecUtil/index.d.ts +222 -214
- package/server/ExtendedDismaxParserBuilder/index.d.ts +127 -125
- package/server/FileIconRenderer/index.d.ts +167 -163
- package/server/FileUtil/index.d.ts +157 -150
- package/server/FilterBuilder/index.d.ts +67 -66
- package/server/FolderUtil/index.d.ts +51 -50
- package/server/FontUtil/index.d.ts +9 -8
- package/server/FormatterBuilderFactory/index.d.ts +35 -34
- package/server/HighlightBuilder/index.d.ts +93 -91
- package/server/IconUtil/index.d.ts +8 -7
- package/server/ImageLinkRenderer/index.d.ts +79 -78
- package/server/ImageRenderer/index.d.ts +327 -218
- package/server/ImageRenderer/index.js +6 -0
- package/server/ImageUtil/index.d.ts +155 -148
- package/server/IndexUtil/index.d.ts +24 -23
- package/server/IndexUtil.IndexType/index.d.ts +15 -15
- package/server/IndexUtil.IndexType/index.js +4 -4
- package/server/IndexingUtil/index.d.ts +38 -38
- package/server/InstanceCreatorUtil/index.d.ts +192 -183
- package/server/InstanceTypeUtil/index.d.ts +7 -5
- package/server/JwtUtil/index.d.ts +79 -78
- package/server/LandingPageUtil/index.d.ts +5 -5
- package/server/LinkPageUtil/index.d.ts +211 -206
- package/server/LinkRenderer/index.d.ts +428 -419
- package/server/LinkTargetBuilder/index.d.ts +61 -60
- package/server/LinkValueBuilder/index.d.ts +59 -58
- package/server/ListWrapper/index.d.ts +73 -67
- package/server/LocaleUtil/index.d.ts +328 -324
- package/server/LogUtil/index.d.ts +30 -26
- package/server/MailBuilder/index.d.ts +112 -109
- package/server/MailUtil/index.d.ts +23 -22
- package/server/MathInstance/index.d.ts +28 -28
- package/server/MessageDigesterFactory/index.d.ts +11 -11
- package/server/MetadataDefinitionUtil/index.d.ts +53 -51
- package/server/MetadataUtil/index.d.ts +197 -181
- package/server/MimeTypeUtil/index.d.ts +117 -112
- package/server/MonitorBuilder/index.d.ts +21 -21
- package/server/NodeComparatorUtil/index.d.ts +172 -164
- package/server/NodeFactoryUtil/index.d.ts +5 -5
- package/server/NodeFilterUtil/index.d.ts +290 -256
- package/server/NodeIteratorUtil/index.d.ts +113 -110
- package/server/NodeResolverUtil/index.d.ts +324 -324
- package/server/NodeTreeUtil/index.d.ts +132 -130
- package/server/NodeTypeUtil/index.d.ts +71 -70
- package/server/OfflineVersionPropertyUtil/index.d.ts +16 -18
- package/server/OnlineVersionPropertyUtil/index.d.ts +16 -18
- package/server/OutputUtil/index.d.ts +240 -231
- package/server/PageUtil/index.d.ts +145 -143
- package/server/PermissionUtil/index.d.ts +200 -200
- package/server/PermissionUtil.Permission/index.d.ts +15 -15
- package/server/PermissionUtil.Permission/index.js +29 -29
- package/server/PortletContextUtil/index.d.ts +35 -33
- package/server/PortletUtil/index.d.ts +9 -9
- package/server/PrincipalUtil/index.d.ts +15 -11
- package/server/Properties/index.d.ts +113 -104
- package/server/PropertyUtil/index.d.ts +1018 -995
- package/server/PublishingUtil/index.d.ts +140 -142
- package/server/QueryStringUtil/index.d.ts +333 -319
- package/server/RedirectUtil/index.d.ts +32 -28
- package/server/RelatedValueBuilder/index.d.ts +40 -40
- package/server/Requester/index.d.ts +303 -302
- package/server/ResourceLocatorUtil/index.d.ts +101 -99
- package/server/RestApi/index.d.ts +82 -81
- package/server/RestAppInvokerFactory/index.d.ts +34 -33
- package/server/RoleAssignmentBuilder/index.d.ts +12 -12
- package/server/RoleMatcherBuilder/index.d.ts +12 -12
- package/server/RoleUtil/index.d.ts +6 -6
- package/server/ScriptUtil/index.d.ts +226 -208
- package/server/SearchFactory/index.d.ts +11 -6
- package/server/SearchUtil/index.d.ts +84 -81
- package/server/SearcherBuilder/index.d.ts +111 -111
- package/server/Session/index.d.ts +123 -120
- package/server/SimpleUserUtil/index.d.ts +22 -17
- package/server/SiteCookieUtil/index.d.ts +24 -22
- package/server/SortBuilder/index.d.ts +70 -69
- package/server/SourceSetMode/index.js +3 -3
- package/server/SpellCheckBuilder/index.d.ts +31 -28
- package/server/StandardParserBuilder/index.d.ts +65 -64
- package/server/StructureUtil/index.d.ts +149 -67
- package/server/SubscriberUtil/index.d.ts +54 -43
- package/server/SubscriptionUtil/index.d.ts +64 -62
- package/server/SystemUserUtil/index.d.ts +75 -75
- package/server/TagUtil/index.d.ts +66 -63
- package/server/TemplateUtil/index.d.ts +89 -85
- package/server/TemporaryFileNodeBuilder/index.d.ts +25 -23
- package/server/TemporaryNodeBuilder/index.d.ts +74 -54
- package/server/TextModuleRendererBuilder/index.d.ts +37 -37
- package/server/TimestampUtil/index.d.ts +32 -21
- package/server/TranslationUtil/index.d.ts +63 -60
- package/server/TrashcanUtil/index.d.ts +76 -75
- package/server/UserDataUtil/index.d.ts +76 -70
- package/server/UserFactory/index.d.ts +5 -5
- package/server/UserFieldRenderer/index.d.ts +116 -114
- package/server/UserIdentityUtil/index.d.ts +26 -26
- package/server/UserUtil/index.d.ts +36 -36
- package/server/Utils/index.d.ts +83 -83
- package/server/VelocityRenderer/index.d.ts +141 -138
- package/server/VersionUtil/index.d.ts +5 -5
- package/server/WebContentUtil/index.d.ts +320 -317
- package/server/WebResourceFactory/index.d.ts +5 -5
- package/server/XSLTUtil/index.d.ts +35 -32
- package/server/XmlParserUtil/index.d.ts +61 -60
- package/server/appResource/index.d.ts +1 -1
- package/types/java/io/Closeable/index.d.ts +23 -0
- package/types/{senselogic/sitevision/api/base/Requireable/ScriptEngine → java/io/Closeable}/index.js +1 -2
- package/types/java/io/File/index.d.ts +1023 -0
- package/types/java/io/File/index.js +52 -0
- package/types/java/io/FileFilter/index.d.ts +19 -0
- package/types/java/io/FileFilter/index.js +10 -0
- package/types/java/io/FilenameFilter/index.d.ts +25 -0
- package/types/java/io/FilenameFilter/index.js +10 -0
- package/types/java/io/FilterOutputStream/index.d.ts +93 -0
- package/types/java/io/FilterOutputStream/index.js +12 -0
- package/types/java/io/Flushable/index.d.ts +14 -0
- package/types/java/io/Flushable/index.js +10 -0
- package/types/java/io/InputStream/index.d.ts +255 -0
- package/types/java/io/InputStream/index.js +16 -0
- package/types/java/io/OutputStream/index.d.ts +106 -0
- package/types/java/io/OutputStream/index.js +12 -0
- package/types/java/io/PrintStream/index.d.ts +408 -0
- package/types/java/io/PrintStream/index.js +20 -0
- package/types/java/io/PrintWriter/index.d.ts +401 -0
- package/types/java/io/PrintWriter/index.js +20 -0
- package/types/java/io/Reader/index.d.ts +125 -0
- package/types/java/io/Reader/index.js +16 -0
- package/types/java/io/Serializable/index.d.ts +141 -0
- package/types/java/io/Serializable/index.js +8 -0
- package/types/java/io/Writer/index.d.ts +154 -0
- package/types/java/io/Writer/index.js +13 -0
- package/types/java/lang/Appendable/index.d.ts +63 -0
- package/types/java/lang/Appendable/index.js +10 -0
- package/types/java/lang/AutoCloseable/index.d.ts +59 -0
- package/types/java/lang/AutoCloseable/index.js +10 -0
- package/types/java/lang/Boolean/index.d.ts +208 -0
- package/types/java/lang/Boolean/index.js +21 -0
- package/types/java/lang/CharSequence/index.d.ts +97 -0
- package/types/java/lang/CharSequence/index.js +15 -0
- package/types/java/lang/Class/index.d.ts +1320 -0
- package/types/java/lang/Class/index.js +72 -0
- package/types/java/lang/ClassLoader/index.d.ts +710 -0
- package/types/java/lang/ClassLoader/index.js +36 -0
- package/types/java/lang/Cloneable/index.d.ts +25 -0
- package/types/java/lang/Cloneable/index.js +8 -0
- package/types/java/lang/Comparable/index.d.ts +103 -0
- package/types/java/lang/Comparable/index.js +10 -0
- package/types/java/lang/Double/index.d.ts +814 -0
- package/types/java/lang/Double/index.js +32 -0
- package/types/java/lang/Enum/index.d.ts +141 -0
- package/types/java/lang/Enum/index.js +19 -0
- package/types/java/lang/Exception/index.d.ts +19 -0
- package/types/java/lang/Exception/index.js +8 -0
- package/types/java/lang/Float/index.d.ts +752 -0
- package/types/java/lang/Float/index.js +32 -0
- package/types/java/lang/Integer/index.d.ts +922 -0
- package/types/java/lang/Integer/index.js +46 -0
- package/types/java/lang/Iterable/index.d.ts +46 -0
- package/types/java/lang/Iterable/index.js +12 -0
- package/types/java/lang/Long/index.d.ts +936 -0
- package/types/java/lang/Long/index.js +45 -0
- package/types/java/lang/Number/index.d.ts +81 -0
- package/types/java/lang/Number/index.js +15 -0
- package/types/java/lang/Object/index.d.ts +467 -0
- package/types/java/lang/Object/index.js +18 -0
- package/types/java/lang/Package/index.d.ts +216 -0
- package/types/java/lang/Package/index.js +29 -0
- package/types/java/lang/Readable/index.d.ts +20 -0
- package/types/java/lang/Readable/index.js +10 -0
- package/types/java/lang/Runnable/index.d.ts +39 -0
- package/types/java/lang/Runnable/index.js +10 -0
- package/types/java/lang/RuntimeException/index.d.ts +17 -0
- package/types/java/lang/RuntimeException/index.js +8 -0
- package/types/java/lang/StackTraceElement/index.d.ts +116 -0
- package/types/java/lang/StackTraceElement/index.js +17 -0
- package/types/java/lang/String/index.d.ts +1427 -0
- package/types/java/lang/String/index.js +48 -0
- package/types/java/lang/StringBuffer/index.d.ts +232 -0
- package/types/java/lang/StringBuffer/index.js +33 -0
- package/types/java/lang/Throwable/index.d.ts +462 -0
- package/types/java/lang/Throwable/index.js +20 -0
- package/types/java/lang/annotation/Annotation/index.d.ts +109 -0
- package/types/java/lang/annotation/Annotation/index.js +13 -0
- package/types/java/lang/reflect/AccessibleObject/index.d.ts +106 -0
- package/types/java/lang/reflect/AccessibleObject/index.js +18 -0
- package/types/java/lang/reflect/AnnotatedElement/index.d.ts +322 -0
- package/types/java/lang/reflect/AnnotatedElement/index.js +16 -0
- package/types/java/lang/reflect/AnnotatedType/index.d.ts +17 -0
- package/types/java/lang/reflect/AnnotatedType/index.js +10 -0
- package/types/java/lang/reflect/Constructor/index.d.ts +236 -0
- package/types/java/lang/reflect/Constructor/index.js +30 -0
- package/types/java/lang/reflect/Executable/index.d.ts +255 -0
- package/types/java/lang/reflect/Executable/index.js +30 -0
- package/types/java/lang/reflect/Field/index.d.ts +506 -0
- package/types/java/lang/reflect/Field/index.js +42 -0
- package/types/java/lang/reflect/GenericDeclaration/index.d.ts +19 -0
- package/types/java/lang/reflect/GenericDeclaration/index.js +10 -0
- package/types/java/lang/reflect/Member/index.d.ts +60 -0
- package/types/java/lang/reflect/Member/index.js +13 -0
- package/types/java/lang/reflect/Method/index.d.ts +308 -0
- package/types/java/lang/reflect/Method/index.js +34 -0
- package/types/java/lang/reflect/Parameter/index.d.ts +155 -0
- package/types/java/lang/reflect/Parameter/index.js +28 -0
- package/types/java/lang/reflect/Type/index.d.ts +18 -0
- package/types/java/lang/reflect/Type/index.js +10 -0
- package/types/java/lang/reflect/TypeVariable/index.d.ts +70 -0
- package/types/java/lang/reflect/TypeVariable/index.js +13 -0
- package/types/java/math/BigDecimal/index.d.ts +1317 -0
- package/types/java/math/BigDecimal/index.js +50 -0
- package/types/java/math/BigInteger/index.d.ts +592 -0
- package/types/java/math/BigInteger/index.js +56 -0
- package/types/java/math/MathContext/index.d.ts +136 -0
- package/types/java/math/MathContext/index.js +14 -0
- package/types/java/math/RoundingMode/index.d.ts +71 -0
- package/types/java/math/RoundingMode/index.js +17 -0
- package/types/java/net/ContentHandler/index.d.ts +70 -0
- package/types/java/net/ContentHandler/index.js +10 -0
- package/types/java/net/ContentHandlerFactory/index.d.ts +26 -0
- package/types/java/net/ContentHandlerFactory/index.js +10 -0
- package/types/java/net/FileNameMap/index.d.ts +16 -0
- package/types/java/net/FileNameMap/index.js +10 -0
- package/types/java/net/InetAddress/index.d.ts +490 -0
- package/types/java/net/InetAddress/index.js +32 -0
- package/types/java/net/NetworkInterface/index.d.ts +222 -0
- package/types/java/net/NetworkInterface/index.js +30 -0
- package/types/java/net/Proxy/index.d.ts +68 -0
- package/types/java/net/Proxy/index.js +14 -0
- package/types/java/net/Proxy.Type/index.d.ts +9 -0
- package/types/java/net/Proxy.Type/index.js +12 -0
- package/types/java/net/SocketAddress/index.d.ts +15 -0
- package/types/java/net/SocketAddress/index.js +8 -0
- package/types/java/net/URI/index.d.ts +956 -0
- package/types/java/net/URI/index.js +37 -0
- package/types/java/net/URL/index.d.ts +378 -0
- package/types/java/net/URL/index.js +29 -0
- package/types/java/net/URLConnection/index.d.ts +773 -0
- package/types/java/net/URLConnection/index.js +58 -0
- package/types/java/net/URLStreamHandler/index.d.ts +199 -0
- package/types/java/net/URLStreamHandler/index.js +19 -0
- package/types/java/net/URLStreamHandlerFactory/index.d.ts +24 -0
- package/types/java/net/URLStreamHandlerFactory/index.js +10 -0
- package/types/java/nio/MappedByteBuffer/index.d.ts +80 -0
- package/types/java/nio/MappedByteBuffer/index.js +12 -0
- package/types/java/nio/channels/AsynchronousChannel/index.d.ts +82 -0
- package/types/java/nio/channels/AsynchronousChannel/index.js +10 -0
- package/types/java/nio/channels/AsynchronousFileChannel/index.d.ts +546 -0
- package/types/java/nio/channels/AsynchronousFileChannel/index.js +17 -0
- package/types/java/nio/channels/ByteChannel/index.d.ts +12 -0
- package/types/java/nio/channels/ByteChannel/index.js +8 -0
- package/types/java/nio/channels/Channel/index.d.ts +48 -0
- package/types/java/nio/channels/Channel/index.js +11 -0
- package/types/java/nio/channels/CompletionHandler/index.d.ts +31 -0
- package/types/java/nio/channels/CompletionHandler/index.js +11 -0
- package/types/java/nio/channels/FileChannel/index.d.ts +756 -0
- package/types/java/nio/channels/FileChannel/index.js +21 -0
- package/types/java/nio/channels/FileChannel.MapMode/index.d.ts +33 -0
- package/types/java/nio/channels/FileChannel.MapMode/index.js +10 -0
- package/types/java/nio/channels/FileLock/index.d.ts +180 -0
- package/types/java/nio/channels/FileLock/index.js +19 -0
- package/types/java/nio/channels/GatheringByteChannel/index.d.ts +83 -0
- package/types/java/nio/channels/GatheringByteChannel/index.js +10 -0
- package/types/java/nio/channels/InterruptibleChannel/index.d.ts +43 -0
- package/types/java/nio/channels/InterruptibleChannel/index.js +10 -0
- package/types/java/nio/channels/ReadableByteChannel/index.d.ts +56 -0
- package/types/java/nio/channels/ReadableByteChannel/index.js +10 -0
- package/types/java/nio/channels/ScatteringByteChannel/index.d.ts +78 -0
- package/types/java/nio/channels/ScatteringByteChannel/index.js +10 -0
- package/types/java/nio/channels/SeekableByteChannel/index.d.ts +110 -0
- package/types/java/nio/channels/SeekableByteChannel/index.js +14 -0
- package/types/java/nio/channels/WritableByteChannel/index.d.ts +52 -0
- package/types/java/nio/channels/WritableByteChannel/index.js +10 -0
- package/types/java/nio/channels/spi/AbstractInterruptibleChannel/index.d.ts +104 -0
- package/types/java/nio/channels/spi/AbstractInterruptibleChannel/index.js +14 -0
- package/types/java/nio/charset/Charset/index.d.ts +472 -0
- package/types/java/nio/charset/Charset/index.js +27 -0
- package/types/java/nio/file/AccessMode/index.d.ts +9 -0
- package/types/java/nio/file/AccessMode/index.js +12 -0
- package/types/java/nio/file/CopyOption/index.d.ts +15 -0
- package/types/java/nio/file/CopyOption/index.js +8 -0
- package/types/java/nio/file/DirectoryStream/index.d.ts +97 -0
- package/types/java/nio/file/DirectoryStream/index.js +10 -0
- package/types/java/nio/file/DirectoryStream.Filter/index.d.ts +18 -0
- package/types/java/nio/file/DirectoryStream.Filter/index.js +10 -0
- package/types/java/nio/file/FileStore/index.d.ts +154 -0
- package/types/java/nio/file/FileStore/index.js +18 -0
- package/types/java/nio/file/FileSystem/index.d.ts +402 -0
- package/types/java/nio/file/FileSystem/index.js +21 -0
- package/types/java/nio/file/LinkOption/index.d.ts +7 -0
- package/types/java/nio/file/LinkOption/index.js +10 -0
- package/types/java/nio/file/OpenOption/index.d.ts +15 -0
- package/types/java/nio/file/OpenOption/index.js +8 -0
- package/types/java/nio/file/Path/index.d.ts +617 -0
- package/types/java/nio/file/Path/index.js +33 -0
- package/types/java/nio/file/PathMatcher/index.d.ts +17 -0
- package/types/java/nio/file/PathMatcher/index.js +10 -0
- package/types/java/nio/file/WatchEvent.Kind/index.d.ts +21 -0
- package/types/java/nio/file/WatchEvent.Kind/index.js +11 -0
- package/types/java/nio/file/WatchEvent.Modifier/index.d.ts +17 -0
- package/types/java/nio/file/WatchEvent.Modifier/index.js +10 -0
- package/types/java/nio/file/WatchKey/index.d.ts +117 -0
- package/types/java/nio/file/WatchKey/index.js +14 -0
- package/types/java/nio/file/WatchService/index.d.ts +121 -0
- package/types/java/nio/file/WatchService/index.js +12 -0
- package/types/java/nio/file/Watchable/index.d.ts +71 -0
- package/types/java/nio/file/Watchable/index.js +10 -0
- package/types/java/nio/file/attribute/FileAttribute/index.d.ts +24 -0
- package/types/java/nio/file/attribute/FileAttribute/index.js +11 -0
- package/types/java/nio/file/attribute/GroupPrincipal/index.d.ts +14 -0
- package/types/java/nio/file/attribute/GroupPrincipal/index.js +8 -0
- package/types/java/nio/file/attribute/UserPrincipal/index.d.ts +25 -0
- package/types/java/nio/file/attribute/UserPrincipal/index.js +8 -0
- package/types/java/nio/file/attribute/UserPrincipalLookupService/index.d.ts +52 -0
- package/types/java/nio/file/attribute/UserPrincipalLookupService/index.js +11 -0
- package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +583 -0
- package/types/java/nio/file/spi/FileSystemProvider/index.js +35 -0
- package/types/java/security/CodeSigner/index.d.ts +52 -0
- package/types/java/security/CodeSigner/index.js +14 -0
- package/types/java/security/CodeSource/index.d.ts +143 -0
- package/types/java/security/CodeSource/index.js +16 -0
- package/types/java/security/Guard/index.d.ts +24 -0
- package/types/java/security/Guard/index.js +10 -0
- package/types/java/security/Key/index.d.ts +120 -0
- package/types/java/security/Key/index.js +12 -0
- package/types/java/security/Permission/index.d.ts +153 -0
- package/types/java/security/Permission/index.js +17 -0
- package/types/java/security/PermissionCollection/index.d.ts +132 -0
- package/types/java/security/PermissionCollection/index.js +15 -0
- package/types/java/security/Principal/index.d.ts +54 -0
- package/types/java/security/Principal/index.js +14 -0
- package/types/java/security/PrivilegedExceptionAction/index.d.ts +24 -0
- package/types/java/security/PrivilegedExceptionAction/index.js +10 -0
- package/types/java/security/ProtectionDomain/index.d.ts +88 -0
- package/types/java/security/ProtectionDomain/index.js +15 -0
- package/types/java/security/Provider/index.d.ts +383 -0
- package/types/java/security/Provider/index.js +38 -0
- package/types/java/security/Provider.Service/index.d.ts +116 -0
- package/types/java/security/Provider.Service/index.js +17 -0
- package/types/java/security/PublicKey/index.d.ts +25 -0
- package/types/java/security/PublicKey/index.js +8 -0
- package/types/java/security/Timestamp/index.d.ts +53 -0
- package/types/java/security/Timestamp/index.js +14 -0
- package/types/java/security/cert/CertPath/index.d.ts +181 -0
- package/types/java/security/cert/CertPath/index.js +17 -0
- package/types/java/security/cert/Certificate/index.d.ts +133 -0
- package/types/java/security/cert/Certificate/index.js +17 -0
- package/types/java/text/AttributedCharacterIterator/index.d.ts +127 -0
- package/types/java/text/AttributedCharacterIterator/index.js +14 -0
- package/types/java/text/AttributedCharacterIterator.Attribute/index.d.ts +76 -0
- package/types/java/text/AttributedCharacterIterator.Attribute/index.js +14 -0
- package/types/java/text/CharacterIterator/index.d.ts +144 -0
- package/types/java/text/CharacterIterator/index.js +19 -0
- package/types/java/text/DateFormat/index.d.ts +600 -0
- package/types/java/text/DateFormat/index.js +28 -0
- package/types/java/text/DateFormatSymbols/index.d.ts +290 -0
- package/types/java/text/DateFormatSymbols/index.js +30 -0
- package/types/java/text/FieldPosition/index.d.ts +98 -0
- package/types/java/text/FieldPosition/index.js +18 -0
- package/types/java/text/Format/index.d.ts +190 -0
- package/types/java/text/Format/index.js +13 -0
- package/types/java/text/Format.Field/index.d.ts +10 -0
- package/types/java/text/Format.Field/index.js +8 -0
- package/types/java/text/NumberFormat/index.d.ts +586 -0
- package/types/java/text/NumberFormat/index.js +37 -0
- package/types/java/text/ParsePosition/index.d.ts +67 -0
- package/types/java/text/ParsePosition/index.js +16 -0
- package/types/java/text/SimpleDateFormat/index.d.ts +521 -0
- package/types/java/text/SimpleDateFormat/index.js +23 -0
- package/types/java/time/Clock/index.d.ts +272 -0
- package/types/java/time/Clock/index.js +23 -0
- package/types/java/time/DayOfWeek/index.d.ts +34 -0
- package/types/java/time/DayOfWeek/index.js +16 -0
- package/types/java/time/Duration/index.d.ts +729 -0
- package/types/java/time/Duration/index.js +56 -0
- package/types/java/time/Instant/index.d.ts +877 -0
- package/types/java/time/Instant/index.js +42 -0
- package/types/java/time/LocalDate/index.d.ts +1306 -0
- package/types/java/time/LocalDate/index.js +59 -0
- package/types/java/time/LocalDateTime/index.d.ts +1394 -0
- package/types/java/time/LocalDateTime/index.js +72 -0
- package/types/java/time/LocalTime/index.d.ts +966 -0
- package/types/java/time/LocalTime/index.js +53 -0
- package/types/java/time/Month/index.d.ts +35 -0
- package/types/java/time/Month/index.js +21 -0
- package/types/java/time/OffsetDateTime/index.d.ts +1384 -0
- package/types/java/time/OffsetDateTime/index.js +80 -0
- package/types/java/time/OffsetTime/index.d.ts +960 -0
- package/types/java/time/OffsetTime/index.js +54 -0
- package/types/java/time/Period/index.d.ts +602 -0
- package/types/java/time/Period/index.js +45 -0
- package/types/java/time/ZoneId/index.d.ts +343 -0
- package/types/java/time/ZoneId/index.js +21 -0
- package/types/java/time/ZoneOffset/index.d.ts +384 -0
- package/types/java/time/ZoneOffset/index.js +28 -0
- package/types/java/time/ZonedDateTime/index.d.ts +1580 -0
- package/types/java/time/ZonedDateTime/index.js +75 -0
- package/types/java/time/chrono/AbstractChronology/index.d.ts +153 -0
- package/types/java/time/chrono/AbstractChronology/index.js +14 -0
- package/types/java/time/chrono/ChronoLocalDate/index.d.ts +593 -0
- package/types/java/time/chrono/ChronoLocalDate/index.js +33 -0
- package/types/java/time/chrono/ChronoLocalDateTime/index.d.ts +409 -0
- package/types/java/time/chrono/ChronoLocalDateTime/index.js +31 -0
- package/types/java/time/chrono/ChronoPeriod/index.d.ts +246 -0
- package/types/java/time/chrono/ChronoPeriod/index.js +25 -0
- package/types/java/time/chrono/ChronoZonedDateTime/index.d.ts +439 -0
- package/types/java/time/chrono/ChronoZonedDateTime/index.js +39 -0
- package/types/java/time/chrono/Chronology/index.d.ts +556 -0
- package/types/java/time/chrono/Chronology/index.js +33 -0
- package/types/java/time/chrono/Era/index.d.ts +202 -0
- package/types/java/time/chrono/Era/index.js +17 -0
- package/types/java/time/chrono/IsoChronology/index.d.ts +345 -0
- package/types/java/time/chrono/IsoChronology/index.js +24 -0
- package/types/java/time/chrono/IsoEra/index.d.ts +40 -0
- package/types/java/time/chrono/IsoEra/index.js +11 -0
- package/types/java/time/format/DateTimeFormatter/index.d.ts +1478 -0
- package/types/java/time/format/DateTimeFormatter/index.js +34 -0
- package/types/java/time/format/DecimalStyle/index.d.ts +150 -0
- package/types/java/time/format/DecimalStyle/index.js +23 -0
- package/types/java/time/format/FormatStyle/index.d.ts +14 -0
- package/types/java/time/format/FormatStyle/index.js +13 -0
- package/types/java/time/format/ResolverStyle/index.d.ts +15 -0
- package/types/java/time/format/ResolverStyle/index.js +12 -0
- package/types/java/time/format/TextStyle/index.d.ts +26 -0
- package/types/java/time/format/TextStyle/index.js +15 -0
- package/types/java/time/temporal/ChronoField/index.d.ts +45 -0
- package/types/java/time/temporal/ChronoField/index.js +39 -0
- package/types/java/time/temporal/Temporal/index.d.ts +259 -0
- package/types/java/time/temporal/Temporal/index.js +14 -0
- package/types/java/time/temporal/TemporalAccessor/index.d.ts +126 -0
- package/types/java/time/temporal/TemporalAccessor/index.js +14 -0
- package/types/java/time/temporal/TemporalAdjuster/index.d.ts +64 -0
- package/types/java/time/temporal/TemporalAdjuster/index.js +10 -0
- package/types/java/time/temporal/TemporalAmount/index.d.ts +105 -0
- package/types/java/time/temporal/TemporalAmount/index.js +13 -0
- package/types/java/time/temporal/TemporalField/index.d.ts +257 -0
- package/types/java/time/temporal/TemporalField/index.js +21 -0
- package/types/java/time/temporal/TemporalQuery/index.d.ts +60 -0
- package/types/java/time/temporal/TemporalQuery/index.js +10 -0
- package/types/java/time/temporal/TemporalUnit/index.d.ts +182 -0
- package/types/java/time/temporal/TemporalUnit/index.js +17 -0
- package/types/java/time/temporal/ValueRange/index.d.ts +198 -0
- package/types/java/time/temporal/ValueRange/index.js +23 -0
- package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +178 -0
- package/types/java/time/zone/ZoneOffsetTransition/index.js +24 -0
- package/types/java/time/zone/ZoneRules/index.d.ts +321 -0
- package/types/java/time/zone/ZoneRules/index.js +25 -0
- package/types/java/util/AbstractCollection/index.d.ts +250 -0
- package/types/java/util/AbstractCollection/index.js +22 -0
- package/types/java/util/AbstractList/index.d.ts +313 -0
- package/types/java/util/AbstractList/index.js +23 -0
- package/types/java/util/ArrayList/index.d.ts +403 -0
- package/types/java/util/ArrayList/index.js +35 -0
- package/types/java/util/Calendar/index.d.ts +1495 -0
- package/types/java/util/Calendar/index.js +55 -0
- package/types/java/util/Collection/index.d.ts +436 -0
- package/types/java/util/Collection/index.js +27 -0
- package/types/java/util/Comparator/index.d.ts +369 -0
- package/types/java/util/Comparator/index.js +24 -0
- package/types/java/util/Currency/index.d.ts +173 -0
- package/types/java/util/Currency/index.js +17 -0
- package/types/java/util/Date/index.d.ts +609 -0
- package/types/java/util/Date/index.js +38 -0
- package/types/java/util/Deque/index.d.ts +467 -0
- package/types/java/util/Deque/index.js +35 -0
- package/types/java/util/Dictionary/index.d.ts +107 -0
- package/types/java/util/Dictionary/index.js +16 -0
- package/types/java/util/DoubleSummaryStatistics/index.d.ts +121 -0
- package/types/java/util/DoubleSummaryStatistics/index.js +17 -0
- package/types/java/util/Enumeration/index.d.ts +46 -0
- package/types/java/util/Enumeration/index.js +11 -0
- package/types/java/util/Hashtable/index.d.ts +356 -0
- package/types/java/util/Hashtable/index.js +38 -0
- package/types/java/util/IntSummaryStatistics/index.d.ts +82 -0
- package/types/java/util/IntSummaryStatistics/index.js +17 -0
- package/types/java/util/Iterator/index.d.ts +65 -0
- package/types/java/util/Iterator/index.js +13 -0
- package/types/java/util/List/index.d.ts +503 -0
- package/types/java/util/List/index.js +32 -0
- package/types/java/util/ListIterator/index.d.ts +134 -0
- package/types/java/util/ListIterator/index.js +18 -0
- package/types/java/util/Locale/index.d.ts +1360 -0
- package/types/java/util/Locale/index.js +42 -0
- package/types/java/util/Locale.Category/index.d.ts +12 -0
- package/types/java/util/Locale.Category/index.js +11 -0
- package/types/java/util/Locale.FilteringMode/index.d.ts +97 -0
- package/types/java/util/Locale.FilteringMode/index.js +14 -0
- package/types/java/util/LongSummaryStatistics/index.d.ts +91 -0
- package/types/java/util/LongSummaryStatistics/index.js +17 -0
- package/types/java/util/Map/index.d.ts +515 -0
- package/types/java/util/Map/index.js +32 -0
- package/types/java/util/Map.Entry/index.d.ts +137 -0
- package/types/java/util/Map.Entry/index.js +16 -0
- package/types/java/util/NavigableMap/index.d.ts +314 -0
- package/types/java/util/NavigableMap/index.js +27 -0
- package/types/java/util/NavigableSet/index.d.ts +228 -0
- package/types/java/util/NavigableSet/index.js +21 -0
- package/types/java/util/Optional/index.d.ts +170 -0
- package/types/java/util/Optional/index.js +24 -0
- package/types/java/util/OptionalDouble/index.d.ts +123 -0
- package/types/java/util/OptionalDouble/index.js +20 -0
- package/types/java/util/OptionalInt/index.d.ts +122 -0
- package/types/java/util/OptionalInt/index.js +20 -0
- package/types/java/util/OptionalLong/index.d.ts +123 -0
- package/types/java/util/OptionalLong/index.js +20 -0
- package/types/java/util/PrimitiveIterator/index.d.ts +38 -0
- package/types/java/util/PrimitiveIterator/index.js +10 -0
- package/types/java/util/PrimitiveIterator.OfDouble/index.d.ts +41 -0
- package/types/java/util/PrimitiveIterator.OfDouble/index.js +12 -0
- package/types/java/util/PrimitiveIterator.OfInt/index.d.ts +41 -0
- package/types/java/util/PrimitiveIterator.OfInt/index.js +12 -0
- package/types/java/util/PrimitiveIterator.OfLong/index.d.ts +41 -0
- package/types/java/util/PrimitiveIterator.OfLong/index.js +12 -0
- package/types/java/util/Properties/index.d.ts +513 -0
- package/types/java/util/Properties/index.js +19 -0
- package/types/java/util/Queue/index.d.ts +168 -0
- package/types/java/util/Queue/index.js +15 -0
- package/types/java/util/Random/index.d.ts +605 -0
- package/types/java/util/Random/index.js +21 -0
- package/types/java/util/RandomAccess/index.d.ts +39 -0
- package/types/java/util/RandomAccess/index.js +8 -0
- package/types/java/util/Set/index.d.ts +303 -0
- package/types/java/util/Set/index.js +24 -0
- package/types/java/util/SortedMap/index.d.ts +218 -0
- package/types/java/util/SortedMap/index.js +18 -0
- package/types/java/util/SortedSet/index.d.ts +179 -0
- package/types/java/util/SortedSet/index.js +16 -0
- package/types/java/util/Spliterator/index.d.ts +317 -0
- package/types/java/util/Spliterator/index.js +17 -0
- package/types/java/util/Spliterator.OfDouble/index.d.ts +28 -0
- package/types/java/util/Spliterator.OfDouble/index.js +12 -0
- package/types/java/util/Spliterator.OfInt/index.d.ts +28 -0
- package/types/java/util/Spliterator.OfInt/index.js +12 -0
- package/types/java/util/Spliterator.OfLong/index.d.ts +28 -0
- package/types/java/util/Spliterator.OfLong/index.js +12 -0
- package/types/java/util/Spliterator.OfPrimitive/index.d.ts +39 -0
- package/types/java/util/Spliterator.OfPrimitive/index.js +12 -0
- package/types/java/util/TimeZone/index.d.ts +435 -0
- package/types/java/util/TimeZone/index.js +26 -0
- package/types/java/util/concurrent/Callable/index.d.ts +26 -0
- package/types/java/util/concurrent/Callable/index.js +10 -0
- package/types/java/util/concurrent/Executor/index.d.ts +102 -0
- package/types/java/util/concurrent/Executor/index.js +10 -0
- package/types/java/util/concurrent/ExecutorService/index.d.ts +296 -0
- package/types/java/util/concurrent/ExecutorService/index.js +17 -0
- package/types/java/util/concurrent/Future/index.d.ts +118 -0
- package/types/java/util/concurrent/Future/index.js +13 -0
- package/types/java/util/concurrent/TimeUnit/index.d.ts +41 -0
- package/types/java/util/concurrent/TimeUnit/index.js +16 -0
- package/types/java/util/function/BiConsumer/index.d.ts +33 -0
- package/types/java/util/function/BiConsumer/index.js +11 -0
- package/types/java/util/function/BiFunction/index.d.ts +35 -0
- package/types/java/util/function/BiFunction/index.js +11 -0
- package/types/java/util/function/BinaryOperator/index.d.ts +37 -0
- package/types/java/util/function/BinaryOperator/index.js +11 -0
- package/types/java/util/function/Consumer/index.d.ts +29 -0
- package/types/java/util/function/Consumer/index.js +11 -0
- package/types/java/util/function/DoubleBinaryOperator/index.d.ts +20 -0
- package/types/java/util/function/DoubleBinaryOperator/index.js +10 -0
- package/types/java/util/function/DoubleConsumer/index.d.ts +30 -0
- package/types/java/util/function/DoubleConsumer/index.js +11 -0
- package/types/java/util/function/DoubleFunction/index.d.ts +19 -0
- package/types/java/util/function/DoubleFunction/index.js +10 -0
- package/types/java/util/function/DoublePredicate/index.d.ts +55 -0
- package/types/java/util/function/DoublePredicate/index.js +13 -0
- package/types/java/util/function/DoubleSupplier/index.d.ts +19 -0
- package/types/java/util/function/DoubleSupplier/index.js +10 -0
- package/types/java/util/function/DoubleToIntFunction/index.d.ts +18 -0
- package/types/java/util/function/DoubleToIntFunction/index.js +10 -0
- package/types/java/util/function/DoubleToLongFunction/index.d.ts +18 -0
- package/types/java/util/function/DoubleToLongFunction/index.js +10 -0
- package/types/java/util/function/DoubleUnaryOperator/index.d.ts +48 -0
- package/types/java/util/function/DoubleUnaryOperator/index.js +13 -0
- package/types/java/util/function/Function/index.d.ts +50 -0
- package/types/java/util/function/Function/index.js +13 -0
- package/types/java/util/function/IntBinaryOperator/index.d.ts +20 -0
- package/types/java/util/function/IntBinaryOperator/index.js +10 -0
- package/types/java/util/function/IntConsumer/index.d.ts +30 -0
- package/types/java/util/function/IntConsumer/index.js +11 -0
- package/types/java/util/function/IntFunction/index.d.ts +19 -0
- package/types/java/util/function/IntFunction/index.js +10 -0
- package/types/java/util/function/IntPredicate/index.d.ts +55 -0
- package/types/java/util/function/IntPredicate/index.js +13 -0
- package/types/java/util/function/IntSupplier/index.d.ts +19 -0
- package/types/java/util/function/IntSupplier/index.js +10 -0
- package/types/java/util/function/IntToDoubleFunction/index.d.ts +18 -0
- package/types/java/util/function/IntToDoubleFunction/index.js +10 -0
- package/types/java/util/function/IntToLongFunction/index.d.ts +18 -0
- package/types/java/util/function/IntToLongFunction/index.js +10 -0
- package/types/java/util/function/IntUnaryOperator/index.d.ts +48 -0
- package/types/java/util/function/IntUnaryOperator/index.js +13 -0
- package/types/java/util/function/LongBinaryOperator/index.d.ts +20 -0
- package/types/java/util/function/LongBinaryOperator/index.js +10 -0
- package/types/java/util/function/LongConsumer/index.d.ts +30 -0
- package/types/java/util/function/LongConsumer/index.js +11 -0
- package/types/java/util/function/LongFunction/index.d.ts +19 -0
- package/types/java/util/function/LongFunction/index.js +10 -0
- package/types/java/util/function/LongPredicate/index.d.ts +55 -0
- package/types/java/util/function/LongPredicate/index.js +13 -0
- package/types/java/util/function/LongSupplier/index.d.ts +19 -0
- package/types/java/util/function/LongSupplier/index.js +10 -0
- package/types/java/util/function/LongToDoubleFunction/index.d.ts +18 -0
- package/types/java/util/function/LongToDoubleFunction/index.js +10 -0
- package/types/java/util/function/LongToIntFunction/index.d.ts +18 -0
- package/types/java/util/function/LongToIntFunction/index.js +10 -0
- package/types/java/util/function/LongUnaryOperator/index.d.ts +48 -0
- package/types/java/util/function/LongUnaryOperator/index.js +13 -0
- package/types/java/util/function/ObjDoubleConsumer/index.d.ts +21 -0
- package/types/java/util/function/ObjDoubleConsumer/index.js +10 -0
- package/types/java/util/function/ObjIntConsumer/index.d.ts +21 -0
- package/types/java/util/function/ObjIntConsumer/index.js +10 -0
- package/types/java/util/function/ObjLongConsumer/index.d.ts +21 -0
- package/types/java/util/function/ObjLongConsumer/index.js +10 -0
- package/types/java/util/function/Predicate/index.d.ts +64 -0
- package/types/java/util/function/Predicate/index.js +14 -0
- package/types/java/util/function/Supplier/index.d.ts +18 -0
- package/types/java/util/function/Supplier/index.js +10 -0
- package/types/java/util/function/ToDoubleFunction/index.d.ts +18 -0
- package/types/java/util/function/ToDoubleFunction/index.js +10 -0
- package/types/java/util/function/ToIntFunction/index.d.ts +18 -0
- package/types/java/util/function/ToIntFunction/index.js +10 -0
- package/types/java/util/function/ToLongFunction/index.d.ts +18 -0
- package/types/java/util/function/ToLongFunction/index.js +10 -0
- package/types/java/util/function/UnaryOperator/index.d.ts +21 -0
- package/types/java/util/function/UnaryOperator/index.js +10 -0
- package/types/java/util/stream/BaseStream/index.d.ts +120 -0
- package/types/java/util/stream/BaseStream/index.js +17 -0
- package/types/java/util/stream/Collector/index.d.ts +213 -0
- package/types/java/util/stream/Collector/index.js +15 -0
- package/types/java/util/stream/Collector.Characteristics/index.d.ts +10 -0
- package/types/java/util/stream/Collector.Characteristics/index.js +12 -0
- package/types/java/util/stream/DoubleStream/index.d.ts +603 -0
- package/types/java/util/stream/DoubleStream/index.js +47 -0
- package/types/java/util/stream/DoubleStream.Builder/index.d.ts +41 -0
- package/types/java/util/stream/DoubleStream.Builder/index.js +12 -0
- package/types/java/util/stream/IntStream/index.d.ts +597 -0
- package/types/java/util/stream/IntStream/index.js +51 -0
- package/types/java/util/stream/IntStream.Builder/index.d.ts +41 -0
- package/types/java/util/stream/IntStream.Builder/index.js +12 -0
- package/types/java/util/stream/LongStream/index.d.ts +587 -0
- package/types/java/util/stream/LongStream/index.js +50 -0
- package/types/java/util/stream/LongStream.Builder/index.d.ts +41 -0
- package/types/java/util/stream/LongStream.Builder/index.js +12 -0
- package/types/java/util/stream/Stream/index.d.ts +753 -0
- package/types/java/util/stream/Stream/index.js +42 -0
- package/types/java/util/stream/Stream.Builder/index.d.ts +44 -0
- package/types/java/util/stream/Stream.Builder/index.js +12 -0
- package/types/javax/jcr/AccessDeniedException/index.d.ts +7 -0
- package/types/javax/jcr/AccessDeniedException/index.js +8 -0
- package/types/javax/jcr/Binary/index.d.ts +20 -18
- package/types/javax/jcr/Credentials/index.d.ts +7 -7
- package/types/javax/jcr/GuestCredentials/index.d.ts +14 -0
- package/types/javax/jcr/GuestCredentials/index.js +8 -0
- package/types/javax/jcr/ImportUUIDBehavior/index.d.ts +4 -22
- package/types/javax/jcr/InvalidItemStateException/index.d.ts +12 -0
- package/types/javax/jcr/InvalidItemStateException/index.js +8 -0
- package/types/javax/jcr/InvalidLifecycleTransitionException/index.d.ts +7 -0
- package/types/javax/jcr/InvalidLifecycleTransitionException/index.js +8 -0
- package/types/javax/jcr/InvalidSerializedDataException/index.d.ts +8 -0
- package/types/javax/jcr/InvalidSerializedDataException/index.js +8 -0
- package/types/javax/jcr/Item/index.d.ts +65 -63
- package/types/javax/jcr/ItemExistsException/index.d.ts +8 -0
- package/types/javax/jcr/ItemExistsException/index.js +8 -0
- package/types/javax/jcr/ItemNotFoundException/index.d.ts +8 -0
- package/types/javax/jcr/ItemNotFoundException/index.js +8 -0
- package/types/javax/jcr/ItemVisitor/index.d.ts +14 -14
- package/types/javax/jcr/LoginException/index.d.ts +9 -0
- package/types/javax/jcr/LoginException/index.js +8 -0
- package/types/javax/jcr/MergeException/index.d.ts +7 -0
- package/types/javax/jcr/MergeException/index.js +8 -0
- package/types/javax/jcr/NamespaceException/index.d.ts +9 -0
- package/types/javax/jcr/NamespaceException/index.js +8 -0
- package/types/javax/jcr/NamespaceRegistry/index.d.ts +16 -14
- package/types/javax/jcr/NoSuchWorkspaceException/index.d.ts +8 -0
- package/types/javax/jcr/NoSuchWorkspaceException/index.js +8 -0
- package/types/javax/jcr/Node/index.d.ts +170 -160
- package/types/javax/jcr/NodeIterator/index.d.ts +3 -3
- package/types/javax/jcr/PathNotFoundException/index.d.ts +9 -0
- package/types/javax/jcr/PathNotFoundException/index.js +8 -0
- package/types/javax/jcr/Property/index.d.ts +216 -211
- package/types/javax/jcr/PropertyIterator/index.d.ts +2 -2
- package/types/javax/jcr/PropertyType/index.d.ts +211 -0
- package/types/javax/jcr/PropertyType/index.js +11 -0
- package/types/javax/jcr/RangeIterator/index.d.ts +6 -4
- package/types/javax/jcr/ReferentialIntegrityException/index.d.ts +7 -0
- package/types/javax/jcr/ReferentialIntegrityException/index.js +8 -0
- package/types/javax/jcr/Repository/index.d.ts +129 -131
- package/types/javax/jcr/RepositoryException/index.d.ts +8 -0
- package/types/javax/jcr/RepositoryException/index.js +8 -0
- package/types/javax/jcr/RepositoryFactory/index.d.ts +64 -63
- package/types/javax/jcr/SimpleCredentials/index.d.ts +57 -0
- package/types/javax/jcr/SimpleCredentials/index.js +15 -0
- package/types/javax/jcr/UnsupportedRepositoryOperationException/index.d.ts +7 -0
- package/types/javax/jcr/UnsupportedRepositoryOperationException/index.js +8 -0
- package/types/javax/jcr/Value/index.d.ts +81 -76
- package/types/javax/jcr/ValueFactory/index.d.ts +20 -15
- package/types/javax/jcr/ValueFormatException/index.d.ts +10 -0
- package/types/javax/jcr/ValueFormatException/index.js +8 -0
- package/types/javax/jcr/Workspace/index.d.ts +35 -32
- package/types/javax/jcr/lock/Lock/index.d.ts +41 -39
- package/types/javax/jcr/lock/LockException/index.d.ts +16 -0
- package/types/javax/jcr/lock/LockException/index.js +10 -0
- package/types/javax/jcr/lock/LockManager/index.d.ts +89 -87
- package/types/javax/jcr/nodetype/ConstraintViolationException/index.d.ts +9 -0
- package/types/javax/jcr/nodetype/ConstraintViolationException/index.js +8 -0
- package/types/javax/jcr/nodetype/InvalidNodeTypeDefinitionException/index.d.ts +8 -0
- package/types/javax/jcr/nodetype/InvalidNodeTypeDefinitionException/index.js +8 -0
- package/types/javax/jcr/nodetype/ItemDefinition/index.d.ts +15 -14
- package/types/javax/jcr/nodetype/NoSuchNodeTypeException/index.d.ts +7 -0
- package/types/javax/jcr/nodetype/NoSuchNodeTypeException/index.js +8 -0
- package/types/javax/jcr/nodetype/NodeDefinition/index.d.ts +59 -58
- package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +21 -19
- package/types/javax/jcr/nodetype/NodeType/index.d.ts +119 -118
- package/types/javax/jcr/nodetype/NodeTypeDefinition/index.d.ts +32 -30
- package/types/javax/jcr/nodetype/NodeTypeExistsException/index.d.ts +8 -0
- package/types/javax/jcr/nodetype/NodeTypeExistsException/index.js +8 -0
- package/types/javax/jcr/nodetype/NodeTypeIterator/index.d.ts +1 -1
- package/types/javax/jcr/nodetype/NodeTypeManager/index.d.ts +7 -6
- package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +36 -33
- package/types/javax/jcr/nodetype/PropertyDefinition/index.d.ts +12 -11
- package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +22 -20
- package/types/javax/jcr/observation/Event/index.d.ts +63 -60
- package/types/javax/jcr/observation/EventIterator/index.d.ts +5 -5
- package/types/javax/jcr/observation/EventJournal/index.d.ts +6 -6
- package/types/javax/jcr/observation/EventListener/index.d.ts +8 -8
- package/types/javax/jcr/observation/EventListenerIterator/index.d.ts +5 -5
- package/types/javax/jcr/observation/ObservationManager/index.d.ts +87 -85
- package/types/javax/jcr/query/InvalidQueryException/index.d.ts +7 -0
- package/types/javax/jcr/query/InvalidQueryException/index.js +8 -0
- package/types/javax/jcr/query/Query/index.d.ts +71 -70
- package/types/javax/jcr/query/QueryManager/index.d.ts +21 -20
- package/types/javax/jcr/query/QueryResult/index.d.ts +11 -10
- package/types/javax/jcr/query/Row/index.d.ts +54 -54
- package/types/javax/jcr/query/RowIterator/index.d.ts +5 -5
- package/types/javax/jcr/query/qom/And/index.d.ts +4 -4
- package/types/javax/jcr/query/qom/BindVariableValue/index.d.ts +2 -1
- package/types/javax/jcr/query/qom/ChildNode/index.d.ts +8 -7
- package/types/javax/jcr/query/qom/ChildNodeJoinCondition/index.d.ts +8 -7
- package/types/javax/jcr/query/qom/Column/index.d.ts +16 -14
- package/types/javax/jcr/query/qom/Comparison/index.d.ts +55 -55
- package/types/javax/jcr/query/qom/Constraint/index.d.ts +6 -8
- package/types/javax/jcr/query/qom/DescendantNode/index.d.ts +12 -11
- package/types/javax/jcr/query/qom/DescendantNodeJoinCondition/index.d.ts +10 -9
- package/types/javax/jcr/query/qom/DynamicOperand/index.d.ts +2 -4
- package/types/javax/jcr/query/qom/EquiJoinCondition/index.d.ts +10 -9
- package/types/javax/jcr/query/qom/FullTextSearch/index.d.ts +63 -62
- package/types/javax/jcr/query/qom/FullTextSearchScore/index.d.ts +11 -10
- package/types/javax/jcr/query/qom/Join/index.d.ts +3 -3
- package/types/javax/jcr/query/qom/JoinCondition/index.d.ts +2 -4
- package/types/javax/jcr/query/qom/Length/index.d.ts +8 -8
- package/types/javax/jcr/query/qom/Literal/index.d.ts +1 -1
- package/types/javax/jcr/query/qom/LowerCase/index.d.ts +10 -10
- package/types/javax/jcr/query/qom/NodeLocalName/index.d.ts +3 -2
- package/types/javax/jcr/query/qom/NodeName/index.d.ts +3 -2
- package/types/javax/jcr/query/qom/Not/index.d.ts +4 -4
- package/types/javax/jcr/query/qom/Operand/index.d.ts +2 -4
- package/types/javax/jcr/query/qom/Or/index.d.ts +8 -8
- package/types/javax/jcr/query/qom/Ordering/index.d.ts +33 -32
- package/types/javax/jcr/query/qom/PropertyExistence/index.d.ts +5 -4
- package/types/javax/jcr/query/qom/PropertyValue/index.d.ts +6 -5
- package/types/javax/jcr/query/qom/QueryObjectModel/index.d.ts +27 -27
- package/types/javax/jcr/query/qom/QueryObjectModelConstants/index.d.ts +3 -3
- package/types/javax/jcr/query/qom/QueryObjectModelFactory/index.d.ts +220 -211
- package/types/javax/jcr/query/qom/SameNode/index.d.ts +8 -7
- package/types/javax/jcr/query/qom/SameNodeJoinCondition/index.d.ts +11 -10
- package/types/javax/jcr/query/qom/Selector/index.d.ts +13 -12
- package/types/javax/jcr/query/qom/Source/index.d.ts +2 -4
- package/types/javax/jcr/query/qom/StaticOperand/index.d.ts +3 -5
- package/types/javax/jcr/query/qom/UpperCase/index.d.ts +10 -10
- package/types/javax/jcr/retention/Hold/index.d.ts +10 -8
- package/types/javax/jcr/retention/RetentionManager/index.d.ts +91 -83
- package/types/javax/jcr/retention/RetentionPolicy/index.d.ts +4 -2
- package/types/javax/jcr/security/AccessControlEntry/index.d.ts +4 -3
- package/types/javax/jcr/security/AccessControlException/index.d.ts +9 -0
- package/types/javax/jcr/security/AccessControlException/index.js +8 -0
- package/types/javax/jcr/security/AccessControlList/index.d.ts +35 -35
- package/types/javax/jcr/security/AccessControlManager/index.d.ts +130 -129
- package/types/javax/jcr/security/AccessControlPolicy/index.d.ts +4 -6
- package/types/javax/jcr/security/AccessControlPolicyIterator/index.d.ts +4 -4
- package/types/javax/jcr/security/NamedAccessControlPolicy/index.d.ts +6 -5
- package/types/javax/jcr/security/Privilege/index.d.ts +73 -71
- package/types/javax/jcr/util/TraversingItemVisitor/index.d.ts +87 -0
- package/types/javax/jcr/util/TraversingItemVisitor/index.js +12 -0
- package/types/javax/jcr/util/TraversingItemVisitor.Default/index.d.ts +19 -0
- package/types/javax/jcr/util/TraversingItemVisitor.Default/index.js +11 -0
- package/types/javax/jcr/version/ActivityViolationException/index.d.ts +14 -0
- package/types/javax/jcr/version/ActivityViolationException/index.js +8 -0
- package/types/javax/jcr/version/LabelExistsVersionException/index.d.ts +9 -0
- package/types/javax/jcr/version/LabelExistsVersionException/index.js +8 -0
- package/types/javax/jcr/version/OnParentVersionAction/index.d.ts +71 -0
- package/types/javax/jcr/version/OnParentVersionAction/index.js +11 -0
- package/types/javax/jcr/version/Version/index.d.ts +36 -36
- package/types/javax/jcr/version/VersionException/index.d.ts +8 -0
- package/types/javax/jcr/version/VersionException/index.js +8 -0
- package/types/javax/jcr/version/VersionHistory/index.d.ts +116 -111
- package/types/javax/jcr/version/VersionIterator/index.d.ts +5 -5
- package/types/javax/jcr/version/VersionManager/index.d.ts +498 -489
- package/types/senselogic/sitevision/api/base/Builder/index.d.ts +83 -83
- package/types/senselogic/sitevision/api/base/Filter/index.d.ts +8 -8
- package/types/senselogic/sitevision/api/base/FilterSplit/index.d.ts +18 -17
- package/types/senselogic/sitevision/api/base/Loadable/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/base/Requireable.ScriptEngine/index.js +11 -0
- package/types/senselogic/sitevision/api/base/Resolver/index.d.ts +13 -13
- package/types/senselogic/sitevision/api/base/Wrapper/index.d.ts +9 -9
- package/types/senselogic/sitevision/api/collaboration/CollaborationGroupWrapper/index.d.ts +124 -122
- package/types/senselogic/sitevision/api/format/NumericFormatter/index.d.ts +22 -17
- package/types/senselogic/sitevision/api/format/NumericFormatterBuilder/index.d.ts +22 -22
- package/types/senselogic/sitevision/api/i18n/Currency/index.d.ts +47 -44
- package/types/senselogic/sitevision/api/link/CustomLinkProcessor/index.d.ts +12 -10
- package/types/senselogic/sitevision/api/link/CustomLinkRenderData/index.d.ts +26 -24
- package/types/senselogic/sitevision/api/mail/Mail/index.d.ts +7 -7
- package/types/senselogic/sitevision/api/message/MessageTextLinker/index.d.ts +3 -1
- package/types/senselogic/sitevision/api/metadata/value/LinkValue/index.d.ts +13 -15
- package/types/senselogic/sitevision/api/metadata/value/RelatedValue/index.d.ts +13 -15
- package/types/senselogic/sitevision/api/portlet/GenericConfigPortlet/index.d.ts +228 -0
- package/types/senselogic/sitevision/api/portlet/GenericConfigPortlet/index.js +14 -0
- package/types/senselogic/sitevision/api/portlet/GenericSiteVisionPortlet/index.d.ts +69 -0
- package/types/senselogic/sitevision/api/portlet/GenericSiteVisionPortlet/index.js +12 -0
- package/types/senselogic/sitevision/api/property/VersionedPropertyUtil/index.d.ts +288 -262
- package/types/senselogic/sitevision/api/render/BuddyIconRenderer.BuddyIconInfo/index.d.ts +21 -19
- package/types/senselogic/sitevision/api/render/ImageScaler/index.d.ts +14 -14
- package/types/senselogic/sitevision/api/render/TextModuleRenderer/index.d.ts +162 -160
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess/index.d.ts +1 -3
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ArticleUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.ExceptionSuppressingProxyConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.IndexingUtilConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.LinkPageUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MathInstanceConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.MimeTypeUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.NodeTypeUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.OutputUtilConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PageUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletContextUtilConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.PortletUtilConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.QueryStringUtilConstants/index.d.ts +6 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchHitConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.SearchResultConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityAccess.VersionUtilConstants/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/render/velocity/VelocityContext/index.d.ts +12 -9
- package/types/senselogic/sitevision/api/render/velocity/VelocityEvaluator/index.d.ts +40 -38
- package/types/senselogic/sitevision/api/render/velocity/VelocityException/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/render/velocity/VelocityException/index.js +8 -0
- package/types/senselogic/sitevision/api/script/RequesterChainable/index.d.ts +46 -46
- package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.d.ts +183 -155
- package/types/senselogic/sitevision/api/script/app/RestAppInvoker/index.js +2 -1
- package/types/senselogic/sitevision/api/script/factory/TypedArgument/index.d.ts +25 -22
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingCollection/index.d.ts +77 -74
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingIterator/index.d.ts +55 -53
- package/types/senselogic/sitevision/api/script/proxy/ExceptionSuppressingProxy/index.d.ts +58 -56
- package/types/senselogic/sitevision/api/search/SearchFieldUtil/index.d.ts +30 -22
- package/types/senselogic/sitevision/api/search/SearchHighlighter/index.d.ts +18 -17
- package/types/senselogic/sitevision/api/search/SearchHit/index.d.ts +471 -444
- package/types/senselogic/sitevision/api/search/SearchResult/index.d.ts +279 -272
- package/types/senselogic/sitevision/api/search/SearchSortField/index.d.ts +58 -0
- package/types/senselogic/sitevision/api/search/SearchSortField/index.js +12 -0
- package/types/senselogic/sitevision/api/search/facet/SearchFacetField/index.d.ts +4 -1
- package/types/senselogic/sitevision/api/search/facet/SearchFacetValue/index.d.ts +12 -10
- package/types/senselogic/sitevision/api/search/searcher/Searcher/index.d.ts +172 -170
- package/types/senselogic/sitevision/api/search/searcher/component/Filter/index.d.ts +16 -18
- package/types/senselogic/sitevision/api/search/searcher/component/Highlight/index.d.ts +19 -21
- package/types/senselogic/sitevision/api/search/searcher/component/Monitor/index.d.ts +16 -18
- package/types/senselogic/sitevision/api/search/searcher/component/Parser/index.d.ts +26 -28
- package/types/senselogic/sitevision/api/search/searcher/component/Sort/index.d.ts +16 -18
- package/types/senselogic/sitevision/api/search/searcher/component/SpellCheck/index.d.ts +19 -21
- package/types/senselogic/sitevision/api/search/sort/CustomSort/index.d.ts +17 -15
- package/types/senselogic/sitevision/api/search/suggestion/SearchSuggestion/index.d.ts +2 -0
- package/types/senselogic/sitevision/api/security/DirectoryAttributes/index.d.ts +41 -27
- package/types/senselogic/sitevision/api/security/JwtException/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/security/JwtException/index.js +8 -0
- package/types/senselogic/sitevision/api/security/MessageDigester/index.d.ts +14 -12
- package/types/senselogic/sitevision/api/security/RoleAssignment/index.d.ts +16 -16
- package/types/senselogic/sitevision/api/security/RoleMatcher/index.d.ts +4 -4
- package/types/senselogic/sitevision/api/security/Secret/index.d.ts +37 -0
- package/types/senselogic/sitevision/api/security/Secret/index.js +13 -0
- package/types/senselogic/sitevision/api/security/SecretStore/index.d.ts +13 -13
- package/types/senselogic/sitevision/api/security/UserUtil/index.d.ts +5 -5
- package/types/senselogic/sitevision/api/security/jaas/callback/NodePrincipalCallback/index.d.ts +109 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/NodePrincipalCallback/index.js +14 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/RedirectCallback/index.d.ts +22 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/RedirectCallback/index.js +10 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/ServletCallback/index.d.ts +39 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/ServletCallback/index.js +13 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/SharedStateCallback/index.d.ts +35 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/SharedStateCallback/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/UserAttributeCallback/index.d.ts +48 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/UserAttributeCallback/index.js +14 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/UserPrincipalCallback/index.d.ts +36 -0
- package/types/senselogic/sitevision/api/security/jaas/callback/UserPrincipalCallback/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/AuthTypeCredential/index.d.ts +35 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/AuthTypeCredential/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/InetAddressCredential/index.d.ts +35 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/InetAddressCredential/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/PasswordCredential/index.d.ts +34 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/PasswordCredential/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/VirtualGroupCredential/index.d.ts +34 -0
- package/types/senselogic/sitevision/api/security/jaas/credential/VirtualGroupCredential/index.js +12 -0
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilter/index.d.ts +12 -9
- package/types/senselogic/sitevision/api/security/jaas/filter/AuthenticationFilterChain/index.d.ts +10 -8
- package/types/senselogic/sitevision/api/user/UserIdentityWrapper/index.d.ts +178 -177
- package/types/senselogic/sitevision/api/webresource/LinkTarget/index.d.ts +10 -12
- package/types/senselogic/sitevision/api/xml/XmlElement/index.d.ts +9 -5
- package/types/senselogic/sitevision/api/xml/XmlParserException/index.d.ts +9 -0
- package/types/senselogic/sitevision/api/xml/XmlParserException/index.js +8 -0
- /package/types/senselogic/sitevision/api/base/{Requireable/ScriptEngine → Requireable.ScriptEngine}/index.d.ts +0 -0
|
@@ -0,0 +1,1306 @@
|
|
|
1
|
+
import type { ZoneId } from "../ZoneId";
|
|
2
|
+
import type { Clock } from "../Clock";
|
|
3
|
+
|
|
4
|
+
import type { Month } from "../Month";
|
|
5
|
+
|
|
6
|
+
import type { TemporalAccessor } from "../temporal/TemporalAccessor";
|
|
7
|
+
import type { CharSequence } from "../../lang/CharSequence";
|
|
8
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
9
|
+
import type { TemporalField } from "../temporal/TemporalField";
|
|
10
|
+
|
|
11
|
+
import type { TemporalUnit } from "../temporal/TemporalUnit";
|
|
12
|
+
import type { ValueRange } from "../temporal/ValueRange";
|
|
13
|
+
import type { IsoChronology } from "../chrono/IsoChronology";
|
|
14
|
+
import type { Era } from "../chrono/Era";
|
|
15
|
+
import type { DayOfWeek } from "../DayOfWeek";
|
|
16
|
+
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
17
|
+
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
18
|
+
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
19
|
+
|
|
20
|
+
import type { Temporal } from "../temporal/Temporal";
|
|
21
|
+
import type { ChronoLocalDate } from "../chrono/ChronoLocalDate";
|
|
22
|
+
import type { Period } from "../Period";
|
|
23
|
+
import type { String } from "../../lang/String";
|
|
24
|
+
import type { LocalTime } from "../LocalTime";
|
|
25
|
+
import type { LocalDateTime } from "../LocalDateTime";
|
|
26
|
+
import type { OffsetTime } from "../OffsetTime";
|
|
27
|
+
import type { OffsetDateTime } from "../OffsetDateTime";
|
|
28
|
+
import type { ZonedDateTime } from "../ZonedDateTime";
|
|
29
|
+
import type { Object } from "../../lang/Object";
|
|
30
|
+
import type { Serializable } from "../../io/Serializable";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A date without a time-zone in the ISO-8601 calendar system,
|
|
34
|
+
* such as {@code 2007-12-03}.
|
|
35
|
+
* <p>
|
|
36
|
+
* {@code LocalDate} is an immutable date-time object that represents a date,
|
|
37
|
+
* often viewed as year-month-day. Other date fields, such as day-of-year,
|
|
38
|
+
* day-of-week and week-of-year, can also be accessed.
|
|
39
|
+
* For example, the value "2nd October 2007" can be stored in a {@code LocalDate}.
|
|
40
|
+
* <p>
|
|
41
|
+
* This class does not store or represent a time or time-zone.
|
|
42
|
+
* Instead, it is a description of the date, as used for birthdays.
|
|
43
|
+
* It cannot represent an instant on the time-line without additional information
|
|
44
|
+
* such as an offset or time-zone.
|
|
45
|
+
* <p>
|
|
46
|
+
* The ISO-8601 calendar system is the modern civil calendar system used today
|
|
47
|
+
* in most of the world. It is equivalent to the proleptic Gregorian calendar
|
|
48
|
+
* system, in which today's rules for leap years are applied for all time.
|
|
49
|
+
* For most applications written today, the ISO-8601 rules are entirely suitable.
|
|
50
|
+
* However, any application that makes use of historical dates, and requires them
|
|
51
|
+
* to be accurate will find the ISO-8601 approach unsuitable.
|
|
52
|
+
*
|
|
53
|
+
* <p>
|
|
54
|
+
* This is a <a href="{@docRoot}/java/lang/doc-files/ValueBased.html">value-based</a>
|
|
55
|
+
* class; use of identity-sensitive operations (including reference equality
|
|
56
|
+
* ({@code ==}), identity hash code, or synchronization) on instances of
|
|
57
|
+
* {@code LocalDate} may have unpredictable results and should be avoided.
|
|
58
|
+
* The {@code equals} method should be used for comparisons.
|
|
59
|
+
* @implSpec This class is immutable and thread-safe.
|
|
60
|
+
* @since 1.8
|
|
61
|
+
*/
|
|
62
|
+
export type LocalDate = Object &
|
|
63
|
+
Temporal &
|
|
64
|
+
TemporalAdjuster &
|
|
65
|
+
ChronoLocalDate &
|
|
66
|
+
Serializable & {
|
|
67
|
+
/**
|
|
68
|
+
* Obtains the current date from the system clock in the default time-zone.
|
|
69
|
+
* <p>
|
|
70
|
+
* This will query the {@link Clock#systemDefaultZone() system clock} in the default
|
|
71
|
+
* time-zone to obtain the current date.
|
|
72
|
+
* <p>
|
|
73
|
+
* Using this method will prevent the ability to use an alternate clock for testing
|
|
74
|
+
* because the clock is hard-coded.
|
|
75
|
+
* @return the current date using the system clock and default time-zone, not null
|
|
76
|
+
*/
|
|
77
|
+
now(): LocalDate;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Obtains the current date from the system clock in the specified time-zone.
|
|
81
|
+
* <p>
|
|
82
|
+
* This will query the {@link Clock#system(ZoneId) system clock} to obtain the current date.
|
|
83
|
+
* Specifying the time-zone avoids dependence on the default time-zone.
|
|
84
|
+
* <p>
|
|
85
|
+
* Using this method will prevent the ability to use an alternate clock for testing
|
|
86
|
+
* because the clock is hard-coded.
|
|
87
|
+
* @param zone the zone ID to use, not null
|
|
88
|
+
* @return the current date using the system clock, not null
|
|
89
|
+
*/
|
|
90
|
+
now(zone: ZoneId): LocalDate;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Obtains the current date from the specified clock.
|
|
94
|
+
* <p>
|
|
95
|
+
* This will query the specified clock to obtain the current date - today.
|
|
96
|
+
* Using this method allows the use of an alternate clock for testing.
|
|
97
|
+
* The alternate clock may be introduced using {@link Clock dependency injection}.
|
|
98
|
+
* @param clock the clock to use, not null
|
|
99
|
+
* @return the current date, not null
|
|
100
|
+
*/
|
|
101
|
+
now(clock: Clock): LocalDate;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Obtains an instance of {@code LocalDate} from a year, month and day.
|
|
105
|
+
* <p>
|
|
106
|
+
* This returns a {@code LocalDate} with the specified year, month and day-of-month.
|
|
107
|
+
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
108
|
+
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
109
|
+
* @param month the month-of-year to represent, not null
|
|
110
|
+
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
111
|
+
* @return the local date, not null
|
|
112
|
+
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
113
|
+
*/
|
|
114
|
+
of(year: number, month: Month, dayOfMonth: number): LocalDate;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Obtains an instance of {@code LocalDate} from a year, month and day.
|
|
118
|
+
* <p>
|
|
119
|
+
* This returns a {@code LocalDate} with the specified year, month and day-of-month.
|
|
120
|
+
* The day must be valid for the year and month, otherwise an exception will be thrown.
|
|
121
|
+
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
122
|
+
* @param month the month-of-year to represent, from 1 (January) to 12 (December)
|
|
123
|
+
* @param dayOfMonth the day-of-month to represent, from 1 to 31
|
|
124
|
+
* @return the local date, not null
|
|
125
|
+
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-month is invalid for the month-year
|
|
126
|
+
*/
|
|
127
|
+
of(year: number, month: number, dayOfMonth: number): LocalDate;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Obtains an instance of {@code LocalDate} from a year and day-of-year.
|
|
131
|
+
* <p>
|
|
132
|
+
* This returns a {@code LocalDate} with the specified year and day-of-year.
|
|
133
|
+
* The day-of-year must be valid for the year, otherwise an exception will be thrown.
|
|
134
|
+
* @param year the year to represent, from MIN_YEAR to MAX_YEAR
|
|
135
|
+
* @param dayOfYear the day-of-year to represent, from 1 to 366
|
|
136
|
+
* @return the local date, not null
|
|
137
|
+
* @throws DateTimeException if the value of any field is out of range,
 or if the day-of-year is invalid for the year
|
|
138
|
+
*/
|
|
139
|
+
ofYearDay(year: number, dayOfYear: number): LocalDate;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Obtains an instance of {@code LocalDate} from the epoch day count.
|
|
143
|
+
* <p>
|
|
144
|
+
* This returns a {@code LocalDate} with the specified epoch-day.
|
|
145
|
+
* The {@link ChronoField#EPOCH_DAY EPOCH_DAY} is a simple incrementing count
|
|
146
|
+
* of days where day 0 is 1970-01-01. Negative numbers represent earlier days.
|
|
147
|
+
* @param epochDay the Epoch Day to convert, based on the epoch 1970-01-01
|
|
148
|
+
* @return the local date, not null
|
|
149
|
+
* @throws DateTimeException if the epoch day exceeds the supported date range
|
|
150
|
+
*/
|
|
151
|
+
ofEpochDay(epochDay: number): LocalDate;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Obtains an instance of {@code LocalDate} from a temporal object.
|
|
155
|
+
* <p>
|
|
156
|
+
* This obtains a local date based on the specified temporal.
|
|
157
|
+
* A {@code TemporalAccessor} represents an arbitrary set of date and time information,
|
|
158
|
+
* which this factory converts to an instance of {@code LocalDate}.
|
|
159
|
+
* <p>
|
|
160
|
+
* The conversion uses the {@link TemporalQueries#localDate()} query, which relies
|
|
161
|
+
* on extracting the {@link ChronoField#EPOCH_DAY EPOCH_DAY} field.
|
|
162
|
+
* <p>
|
|
163
|
+
* This method matches the signature of the functional interface {@link TemporalQuery}
|
|
164
|
+
* allowing it to be used as a query via method reference, {@code LocalDate::from}.
|
|
165
|
+
* @param temporal the temporal object to convert, not null
|
|
166
|
+
* @return the local date, not null
|
|
167
|
+
* @throws DateTimeException if unable to convert to a {@code LocalDate}
|
|
168
|
+
*/
|
|
169
|
+
from(temporal: TemporalAccessor): LocalDate;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Obtains an instance of {@code LocalDate} from a text string such as {@code 2007-12-03}.
|
|
173
|
+
* <p>
|
|
174
|
+
* The string must represent a valid date and is parsed using
|
|
175
|
+
* {@link java.time.format.DateTimeFormatter#ISO_LOCAL_DATE}.
|
|
176
|
+
* @param text the text to parse such as "2007-12-03", not null
|
|
177
|
+
* @return the parsed local date, not null
|
|
178
|
+
* @throws DateTimeParseException if the text cannot be parsed
|
|
179
|
+
*/
|
|
180
|
+
parse(text: CharSequence): LocalDate;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Obtains an instance of {@code LocalDate} from a text string using a specific formatter.
|
|
184
|
+
* <p>
|
|
185
|
+
* The text is parsed using the formatter, returning a date.
|
|
186
|
+
* @param text the text to parse, not null
|
|
187
|
+
* @param formatter the formatter to use, not null
|
|
188
|
+
* @return the parsed local date, not null
|
|
189
|
+
* @throws DateTimeParseException if the text cannot be parsed
|
|
190
|
+
*/
|
|
191
|
+
parse(text: CharSequence, formatter: DateTimeFormatter): LocalDate;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Checks if the specified field is supported.
|
|
195
|
+
* <p>
|
|
196
|
+
* This checks if this date can be queried for the specified field.
|
|
197
|
+
* If false, then calling the {@link #range(TemporalField) range},
|
|
198
|
+
* {@link #get(TemporalField) get} and {@link #with(TemporalField, long)}
|
|
199
|
+
* methods will throw an exception.
|
|
200
|
+
* <p>
|
|
201
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
202
|
+
* The supported fields are:
|
|
203
|
+
* <ul>
|
|
204
|
+
* <li>{@code DAY_OF_WEEK}
|
|
205
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_MONTH}
|
|
206
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_YEAR}
|
|
207
|
+
* <li>{@code DAY_OF_MONTH}
|
|
208
|
+
* <li>{@code DAY_OF_YEAR}
|
|
209
|
+
* <li>{@code EPOCH_DAY}
|
|
210
|
+
* <li>{@code ALIGNED_WEEK_OF_MONTH}
|
|
211
|
+
* <li>{@code ALIGNED_WEEK_OF_YEAR}
|
|
212
|
+
* <li>{@code MONTH_OF_YEAR}
|
|
213
|
+
* <li>{@code PROLEPTIC_MONTH}
|
|
214
|
+
* <li>{@code YEAR_OF_ERA}
|
|
215
|
+
* <li>{@code YEAR}
|
|
216
|
+
* <li>{@code ERA}
|
|
217
|
+
* </ul>
|
|
218
|
+
* All other {@code ChronoField} instances will return false.
|
|
219
|
+
* <p>
|
|
220
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
221
|
+
* is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)}
|
|
222
|
+
* passing {@code this} as the argument.
|
|
223
|
+
* Whether the field is supported is determined by the field.
|
|
224
|
+
* @param field the field to check, null returns false
|
|
225
|
+
* @return true if the field is supported on this date, false if not
|
|
226
|
+
*/
|
|
227
|
+
isSupported(field: TemporalField): boolean;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Checks if the specified unit is supported.
|
|
231
|
+
* <p>
|
|
232
|
+
* This checks if the specified unit can be added to, or subtracted from, this date.
|
|
233
|
+
* If false, then calling the {@link #plus(long, TemporalUnit)} and
|
|
234
|
+
* {@link #minus(long, TemporalUnit) minus} methods will throw an exception.
|
|
235
|
+
* <p>
|
|
236
|
+
* If the unit is a {@link ChronoUnit} then the query is implemented here.
|
|
237
|
+
* The supported units are:
|
|
238
|
+
* <ul>
|
|
239
|
+
* <li>{@code DAYS}
|
|
240
|
+
* <li>{@code WEEKS}
|
|
241
|
+
* <li>{@code MONTHS}
|
|
242
|
+
* <li>{@code YEARS}
|
|
243
|
+
* <li>{@code DECADES}
|
|
244
|
+
* <li>{@code CENTURIES}
|
|
245
|
+
* <li>{@code MILLENNIA}
|
|
246
|
+
* <li>{@code ERAS}
|
|
247
|
+
* </ul>
|
|
248
|
+
* All other {@code ChronoUnit} instances will return false.
|
|
249
|
+
* <p>
|
|
250
|
+
* If the unit is not a {@code ChronoUnit}, then the result of this method
|
|
251
|
+
* is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)}
|
|
252
|
+
* passing {@code this} as the argument.
|
|
253
|
+
* Whether the unit is supported is determined by the unit.
|
|
254
|
+
* @param unit the unit to check, null returns false
|
|
255
|
+
* @return true if the unit can be added/subtracted, false if not
|
|
256
|
+
*/
|
|
257
|
+
isSupported(unit: TemporalUnit): boolean;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Gets the range of valid values for the specified field.
|
|
261
|
+
* <p>
|
|
262
|
+
* The range object expresses the minimum and maximum valid values for a field.
|
|
263
|
+
* This date is used to enhance the accuracy of the returned range.
|
|
264
|
+
* If it is not possible to return the range, because the field is not supported
|
|
265
|
+
* or for some other reason, an exception is thrown.
|
|
266
|
+
* <p>
|
|
267
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
268
|
+
* The {@link #isSupported(TemporalField) supported fields} will return
|
|
269
|
+
* appropriate range instances.
|
|
270
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
271
|
+
* <p>
|
|
272
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
273
|
+
* is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)}
|
|
274
|
+
* passing {@code this} as the argument.
|
|
275
|
+
* Whether the range can be obtained is determined by the field.
|
|
276
|
+
* @param field the field to query the range for, not null
|
|
277
|
+
* @return the range of valid values for the field, not null
|
|
278
|
+
* @throws DateTimeException if the range for the field cannot be obtained
|
|
279
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
280
|
+
*/
|
|
281
|
+
range(field: TemporalField): ValueRange;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Gets the value of the specified field from this date as an {@code int}.
|
|
285
|
+
* <p>
|
|
286
|
+
* This queries this date for the value of the specified field.
|
|
287
|
+
* The returned value will always be within the valid range of values for the field.
|
|
288
|
+
* If it is not possible to return the value, because the field is not supported
|
|
289
|
+
* or for some other reason, an exception is thrown.
|
|
290
|
+
* <p>
|
|
291
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
292
|
+
* The {@link #isSupported(TemporalField) supported fields} will return valid
|
|
293
|
+
* values based on this date, except {@code EPOCH_DAY} and {@code PROLEPTIC_MONTH}
|
|
294
|
+
* which are too large to fit in an {@code int} and throw a {@code DateTimeException}.
|
|
295
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
296
|
+
* <p>
|
|
297
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
298
|
+
* is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)}
|
|
299
|
+
* passing {@code this} as the argument. Whether the value can be obtained,
|
|
300
|
+
* and what the value represents, is determined by the field.
|
|
301
|
+
* @param field the field to get, not null
|
|
302
|
+
* @return the value for the field
|
|
303
|
+
* @throws DateTimeException if a value for the field cannot be obtained or
 the value is outside the range of valid values for the field
|
|
304
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported or
 the range of values exceeds an {@code int}
|
|
305
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
306
|
+
*/
|
|
307
|
+
get(field: TemporalField): number;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Gets the value of the specified field from this date as a {@code long}.
|
|
311
|
+
* <p>
|
|
312
|
+
* This queries this date for the value of the specified field.
|
|
313
|
+
* If it is not possible to return the value, because the field is not supported
|
|
314
|
+
* or for some other reason, an exception is thrown.
|
|
315
|
+
* <p>
|
|
316
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
317
|
+
* The {@link #isSupported(TemporalField) supported fields} will return valid
|
|
318
|
+
* values based on this date.
|
|
319
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
320
|
+
* <p>
|
|
321
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
322
|
+
* is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)}
|
|
323
|
+
* passing {@code this} as the argument. Whether the value can be obtained,
|
|
324
|
+
* and what the value represents, is determined by the field.
|
|
325
|
+
* @param field the field to get, not null
|
|
326
|
+
* @return the value for the field
|
|
327
|
+
* @throws DateTimeException if a value for the field cannot be obtained
|
|
328
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
329
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
330
|
+
*/
|
|
331
|
+
getLong(field: TemporalField): number;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Gets the chronology of this date, which is the ISO calendar system.
|
|
335
|
+
* <p>
|
|
336
|
+
* The {@code Chronology} represents the calendar system in use.
|
|
337
|
+
* The ISO-8601 calendar system is the modern civil calendar system used today
|
|
338
|
+
* in most of the world. It is equivalent to the proleptic Gregorian calendar
|
|
339
|
+
* system, in which today's rules for leap years are applied for all time.
|
|
340
|
+
* @return the ISO chronology, not null
|
|
341
|
+
*/
|
|
342
|
+
getChronology(): IsoChronology;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Gets the era applicable at this date.
|
|
346
|
+
* <p>
|
|
347
|
+
* The official ISO-8601 standard does not define eras, however {@code IsoChronology} does.
|
|
348
|
+
* It defines two eras, 'CE' from year one onwards and 'BCE' from year zero backwards.
|
|
349
|
+
* Since dates before the Julian-Gregorian cutover are not in line with history,
|
|
350
|
+
* the cutover between 'BCE' and 'CE' is also not aligned with the commonly used
|
|
351
|
+
* eras, often referred to using 'BC' and 'AD'.
|
|
352
|
+
* <p>
|
|
353
|
+
* Users of this class should typically ignore this method as it exists primarily
|
|
354
|
+
* to fulfill the {@link ChronoLocalDate} contract where it is necessary to support
|
|
355
|
+
* the Japanese calendar system.
|
|
356
|
+
* <p>
|
|
357
|
+
* The returned era will be a singleton capable of being compared with the constants
|
|
358
|
+
* in {@link IsoChronology} using the {@code ==} operator.
|
|
359
|
+
* @return the {@code IsoChronology} era constant applicable at this date, not null
|
|
360
|
+
*/
|
|
361
|
+
getEra(): Era;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Gets the year field.
|
|
365
|
+
* <p>
|
|
366
|
+
* This method returns the primitive {@code int} value for the year.
|
|
367
|
+
* <p>
|
|
368
|
+
* The year returned by this method is proleptic as per {@code get(YEAR)}.
|
|
369
|
+
* To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}.
|
|
370
|
+
* @return the year, from MIN_YEAR to MAX_YEAR
|
|
371
|
+
*/
|
|
372
|
+
getYear(): number;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Gets the month-of-year field from 1 to 12.
|
|
376
|
+
* <p>
|
|
377
|
+
* This method returns the month as an {@code int} from 1 to 12.
|
|
378
|
+
* Application code is frequently clearer if the enum {@link Month}
|
|
379
|
+
* is used by calling {@link #getMonth()}.
|
|
380
|
+
* @return the month-of-year, from 1 to 12
|
|
381
|
+
* @see #getMonth()
|
|
382
|
+
*/
|
|
383
|
+
getMonthValue(): number;
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Gets the month-of-year field using the {@code Month} enum.
|
|
387
|
+
* <p>
|
|
388
|
+
* This method returns the enum {@link Month} for the month.
|
|
389
|
+
* This avoids confusion as to what {@code int} values mean.
|
|
390
|
+
* If you need access to the primitive {@code int} value then the enum
|
|
391
|
+
* provides the {@link Month#getValue() int value}.
|
|
392
|
+
* @return the month-of-year, not null
|
|
393
|
+
* @see #getMonthValue()
|
|
394
|
+
*/
|
|
395
|
+
getMonth(): Month;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Gets the day-of-month field.
|
|
399
|
+
* <p>
|
|
400
|
+
* This method returns the primitive {@code int} value for the day-of-month.
|
|
401
|
+
* @return the day-of-month, from 1 to 31
|
|
402
|
+
*/
|
|
403
|
+
getDayOfMonth(): number;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Gets the day-of-year field.
|
|
407
|
+
* <p>
|
|
408
|
+
* This method returns the primitive {@code int} value for the day-of-year.
|
|
409
|
+
* @return the day-of-year, from 1 to 365, or 366 in a leap year
|
|
410
|
+
*/
|
|
411
|
+
getDayOfYear(): number;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Gets the day-of-week field, which is an enum {@code DayOfWeek}.
|
|
415
|
+
* <p>
|
|
416
|
+
* This method returns the enum {@link DayOfWeek} for the day-of-week.
|
|
417
|
+
* This avoids confusion as to what {@code int} values mean.
|
|
418
|
+
* If you need access to the primitive {@code int} value then the enum
|
|
419
|
+
* provides the {@link DayOfWeek#getValue() int value}.
|
|
420
|
+
* <p>
|
|
421
|
+
* Additional information can be obtained from the {@code DayOfWeek}.
|
|
422
|
+
* This includes textual names of the values.
|
|
423
|
+
* @return the day-of-week, not null
|
|
424
|
+
*/
|
|
425
|
+
getDayOfWeek(): DayOfWeek;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Checks if the year is a leap year, according to the ISO proleptic
|
|
429
|
+
* calendar system rules.
|
|
430
|
+
* <p>
|
|
431
|
+
* This method applies the current rules for leap years across the whole time-line.
|
|
432
|
+
* In general, a year is a leap year if it is divisible by four without
|
|
433
|
+
* remainder. However, years divisible by 100, are not leap years, with
|
|
434
|
+
* the exception of years divisible by 400 which are.
|
|
435
|
+
* <p>
|
|
436
|
+
* For example, 1904 is a leap year it is divisible by 4.
|
|
437
|
+
* 1900 was not a leap year as it is divisible by 100, however 2000 was a
|
|
438
|
+
* leap year as it is divisible by 400.
|
|
439
|
+
* <p>
|
|
440
|
+
* The calculation is proleptic - applying the same rules into the far future and far past.
|
|
441
|
+
* This is historically inaccurate, but is correct for the ISO-8601 standard.
|
|
442
|
+
* @return true if the year is leap, false otherwise
|
|
443
|
+
*/
|
|
444
|
+
isLeapYear(): boolean;
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* Returns the length of the month represented by this date.
|
|
448
|
+
* <p>
|
|
449
|
+
* This returns the length of the month in days.
|
|
450
|
+
* For example, a date in January would return 31.
|
|
451
|
+
* @return the length of the month in days
|
|
452
|
+
*/
|
|
453
|
+
lengthOfMonth(): number;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Returns the length of the year represented by this date.
|
|
457
|
+
* <p>
|
|
458
|
+
* This returns the length of the year in days, either 365 or 366.
|
|
459
|
+
* @return 366 if the year is leap, 365 otherwise
|
|
460
|
+
*/
|
|
461
|
+
lengthOfYear(): number;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Returns an adjusted copy of this date.
|
|
465
|
+
* <p>
|
|
466
|
+
* This returns a {@code LocalDate}, based on this one, with the date adjusted.
|
|
467
|
+
* The adjustment takes place using the specified adjuster strategy object.
|
|
468
|
+
* Read the documentation of the adjuster to understand what adjustment will be made.
|
|
469
|
+
* <p>
|
|
470
|
+
* A simple adjuster might simply set the one of the fields, such as the year field.
|
|
471
|
+
* A more complex adjuster might set the date to the last day of the month.
|
|
472
|
+
* <p>
|
|
473
|
+
* A selection of common adjustments is provided in
|
|
474
|
+
* {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}.
|
|
475
|
+
* These include finding the "last day of the month" and "next Wednesday".
|
|
476
|
+
* Key date-time classes also implement the {@code TemporalAdjuster} interface,
|
|
477
|
+
* such as {@link Month} and {@link java.time.MonthDay MonthDay}.
|
|
478
|
+
* The adjuster is responsible for handling special cases, such as the varying
|
|
479
|
+
* lengths of month and leap years.
|
|
480
|
+
* <p>
|
|
481
|
+
* For example this code returns a date on the last day of July:
|
|
482
|
+
* <pre>
|
|
483
|
+
* import static java.time.Month.*;
|
|
484
|
+
* import static java.time.temporal.TemporalAdjusters.*;
|
|
485
|
+
*
|
|
486
|
+
* result = localDate.with(JULY).with(lastDayOfMonth());
|
|
487
|
+
* </pre>
|
|
488
|
+
* <p>
|
|
489
|
+
* The result of this method is obtained by invoking the
|
|
490
|
+
* {@link TemporalAdjuster#adjustInto(Temporal)} method on the
|
|
491
|
+
* specified adjuster passing {@code this} as the argument.
|
|
492
|
+
* <p>
|
|
493
|
+
* This instance is immutable and unaffected by this method call.
|
|
494
|
+
* @param adjuster the adjuster to use, not null
|
|
495
|
+
* @return a {@code LocalDate} based on {@code this} with the adjustment made, not null
|
|
496
|
+
* @throws DateTimeException if the adjustment cannot be made
|
|
497
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
498
|
+
*/
|
|
499
|
+
with(adjuster: TemporalAdjuster): LocalDate;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Returns a copy of this date with the specified field set to a new value.
|
|
503
|
+
* <p>
|
|
504
|
+
* This returns a {@code LocalDate}, based on this one, with the value
|
|
505
|
+
* for the specified field changed.
|
|
506
|
+
* This can be used to change any supported field, such as the year, month or day-of-month.
|
|
507
|
+
* If it is not possible to set the value, because the field is not supported or for
|
|
508
|
+
* some other reason, an exception is thrown.
|
|
509
|
+
* <p>
|
|
510
|
+
* In some cases, changing the specified field can cause the resulting date to become invalid,
|
|
511
|
+
* such as changing the month from 31st January to February would make the day-of-month invalid.
|
|
512
|
+
* In cases like this, the field is responsible for resolving the date. Typically it will choose
|
|
513
|
+
* the previous valid date, which would be the last valid day of February in this example.
|
|
514
|
+
* <p>
|
|
515
|
+
* If the field is a {@link ChronoField} then the adjustment is implemented here.
|
|
516
|
+
* The supported fields behave as follows:
|
|
517
|
+
* <ul>
|
|
518
|
+
* <li>{@code DAY_OF_WEEK} -
|
|
519
|
+
* Returns a {@code LocalDate} with the specified day-of-week.
|
|
520
|
+
* The date is adjusted up to 6 days forward or backward within the boundary
|
|
521
|
+
* of a Monday to Sunday week.
|
|
522
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_MONTH} -
|
|
523
|
+
* Returns a {@code LocalDate} with the specified aligned-day-of-week.
|
|
524
|
+
* The date is adjusted to the specified month-based aligned-day-of-week.
|
|
525
|
+
* Aligned weeks are counted such that the first week of a given month starts
|
|
526
|
+
* on the first day of that month.
|
|
527
|
+
* This may cause the date to be moved up to 6 days into the following month.
|
|
528
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_YEAR} -
|
|
529
|
+
* Returns a {@code LocalDate} with the specified aligned-day-of-week.
|
|
530
|
+
* The date is adjusted to the specified year-based aligned-day-of-week.
|
|
531
|
+
* Aligned weeks are counted such that the first week of a given year starts
|
|
532
|
+
* on the first day of that year.
|
|
533
|
+
* This may cause the date to be moved up to 6 days into the following year.
|
|
534
|
+
* <li>{@code DAY_OF_MONTH} -
|
|
535
|
+
* Returns a {@code LocalDate} with the specified day-of-month.
|
|
536
|
+
* The month and year will be unchanged. If the day-of-month is invalid for the
|
|
537
|
+
* year and month, then a {@code DateTimeException} is thrown.
|
|
538
|
+
* <li>{@code DAY_OF_YEAR} -
|
|
539
|
+
* Returns a {@code LocalDate} with the specified day-of-year.
|
|
540
|
+
* The year will be unchanged. If the day-of-year is invalid for the
|
|
541
|
+
* year, then a {@code DateTimeException} is thrown.
|
|
542
|
+
* <li>{@code EPOCH_DAY} -
|
|
543
|
+
* Returns a {@code LocalDate} with the specified epoch-day.
|
|
544
|
+
* This completely replaces the date and is equivalent to {@link #ofEpochDay(long)}.
|
|
545
|
+
* <li>{@code ALIGNED_WEEK_OF_MONTH} -
|
|
546
|
+
* Returns a {@code LocalDate} with the specified aligned-week-of-month.
|
|
547
|
+
* Aligned weeks are counted such that the first week of a given month starts
|
|
548
|
+
* on the first day of that month.
|
|
549
|
+
* This adjustment moves the date in whole week chunks to match the specified week.
|
|
550
|
+
* The result will have the same day-of-week as this date.
|
|
551
|
+
* This may cause the date to be moved into the following month.
|
|
552
|
+
* <li>{@code ALIGNED_WEEK_OF_YEAR} -
|
|
553
|
+
* Returns a {@code LocalDate} with the specified aligned-week-of-year.
|
|
554
|
+
* Aligned weeks are counted such that the first week of a given year starts
|
|
555
|
+
* on the first day of that year.
|
|
556
|
+
* This adjustment moves the date in whole week chunks to match the specified week.
|
|
557
|
+
* The result will have the same day-of-week as this date.
|
|
558
|
+
* This may cause the date to be moved into the following year.
|
|
559
|
+
* <li>{@code MONTH_OF_YEAR} -
|
|
560
|
+
* Returns a {@code LocalDate} with the specified month-of-year.
|
|
561
|
+
* The year will be unchanged. The day-of-month will also be unchanged,
|
|
562
|
+
* unless it would be invalid for the new month and year. In that case, the
|
|
563
|
+
* day-of-month is adjusted to the maximum valid value for the new month and year.
|
|
564
|
+
* <li>{@code PROLEPTIC_MONTH} -
|
|
565
|
+
* Returns a {@code LocalDate} with the specified proleptic-month.
|
|
566
|
+
* The day-of-month will be unchanged, unless it would be invalid for the new month
|
|
567
|
+
* and year. In that case, the day-of-month is adjusted to the maximum valid value
|
|
568
|
+
* for the new month and year.
|
|
569
|
+
* <li>{@code YEAR_OF_ERA} -
|
|
570
|
+
* Returns a {@code LocalDate} with the specified year-of-era.
|
|
571
|
+
* The era and month will be unchanged. The day-of-month will also be unchanged,
|
|
572
|
+
* unless it would be invalid for the new month and year. In that case, the
|
|
573
|
+
* day-of-month is adjusted to the maximum valid value for the new month and year.
|
|
574
|
+
* <li>{@code YEAR} -
|
|
575
|
+
* Returns a {@code LocalDate} with the specified year.
|
|
576
|
+
* The month will be unchanged. The day-of-month will also be unchanged,
|
|
577
|
+
* unless it would be invalid for the new month and year. In that case, the
|
|
578
|
+
* day-of-month is adjusted to the maximum valid value for the new month and year.
|
|
579
|
+
* <li>{@code ERA} -
|
|
580
|
+
* Returns a {@code LocalDate} with the specified era.
|
|
581
|
+
* The year-of-era and month will be unchanged. The day-of-month will also be unchanged,
|
|
582
|
+
* unless it would be invalid for the new month and year. In that case, the
|
|
583
|
+
* day-of-month is adjusted to the maximum valid value for the new month and year.
|
|
584
|
+
* </ul>
|
|
585
|
+
* <p>
|
|
586
|
+
* In all cases, if the new value is outside the valid range of values for the field
|
|
587
|
+
* then a {@code DateTimeException} will be thrown.
|
|
588
|
+
* <p>
|
|
589
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
590
|
+
* <p>
|
|
591
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
592
|
+
* is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
|
|
593
|
+
* passing {@code this} as the argument. In this case, the field determines
|
|
594
|
+
* whether and how to adjust the instant.
|
|
595
|
+
* <p>
|
|
596
|
+
* This instance is immutable and unaffected by this method call.
|
|
597
|
+
* @param field the field to set in the result, not null
|
|
598
|
+
* @param newValue the new value of the field in the result
|
|
599
|
+
* @return a {@code LocalDate} based on {@code this} with the specified field set, not null
|
|
600
|
+
* @throws DateTimeException if the field cannot be set
|
|
601
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
602
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
603
|
+
*/
|
|
604
|
+
with(field: TemporalField, newValue: number): LocalDate;
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Returns a copy of this {@code LocalDate} with the year altered.
|
|
608
|
+
* <p>
|
|
609
|
+
* If the day-of-month is invalid for the year, it will be changed to the last valid day of the month.
|
|
610
|
+
* <p>
|
|
611
|
+
* This instance is immutable and unaffected by this method call.
|
|
612
|
+
* @param year the year to set in the result, from MIN_YEAR to MAX_YEAR
|
|
613
|
+
* @return a {@code LocalDate} based on this date with the requested year, not null
|
|
614
|
+
* @throws DateTimeException if the year value is invalid
|
|
615
|
+
*/
|
|
616
|
+
withYear(year: number): LocalDate;
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Returns a copy of this {@code LocalDate} with the month-of-year altered.
|
|
620
|
+
* <p>
|
|
621
|
+
* If the day-of-month is invalid for the year, it will be changed to the last valid day of the month.
|
|
622
|
+
* <p>
|
|
623
|
+
* This instance is immutable and unaffected by this method call.
|
|
624
|
+
* @param month the month-of-year to set in the result, from 1 (January) to 12 (December)
|
|
625
|
+
* @return a {@code LocalDate} based on this date with the requested month, not null
|
|
626
|
+
* @throws DateTimeException if the month-of-year value is invalid
|
|
627
|
+
*/
|
|
628
|
+
withMonth(month: number): LocalDate;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Returns a copy of this {@code LocalDate} with the day-of-month altered.
|
|
632
|
+
* <p>
|
|
633
|
+
* If the resulting date is invalid, an exception is thrown.
|
|
634
|
+
* <p>
|
|
635
|
+
* This instance is immutable and unaffected by this method call.
|
|
636
|
+
* @param dayOfMonth the day-of-month to set in the result, from 1 to 28-31
|
|
637
|
+
* @return a {@code LocalDate} based on this date with the requested day, not null
|
|
638
|
+
* @throws DateTimeException if the day-of-month value is invalid,
 or if the day-of-month is invalid for the month-year
|
|
639
|
+
*/
|
|
640
|
+
withDayOfMonth(dayOfMonth: number): LocalDate;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Returns a copy of this {@code LocalDate} with the day-of-year altered.
|
|
644
|
+
* <p>
|
|
645
|
+
* If the resulting date is invalid, an exception is thrown.
|
|
646
|
+
* <p>
|
|
647
|
+
* This instance is immutable and unaffected by this method call.
|
|
648
|
+
* @param dayOfYear the day-of-year to set in the result, from 1 to 365-366
|
|
649
|
+
* @return a {@code LocalDate} based on this date with the requested day, not null
|
|
650
|
+
* @throws DateTimeException if the day-of-year value is invalid,
 or if the day-of-year is invalid for the year
|
|
651
|
+
*/
|
|
652
|
+
withDayOfYear(dayOfYear: number): LocalDate;
|
|
653
|
+
|
|
654
|
+
/**
|
|
655
|
+
* Returns a copy of this date with the specified amount added.
|
|
656
|
+
* <p>
|
|
657
|
+
* This returns a {@code LocalDate}, based on this one, with the specified amount added.
|
|
658
|
+
* The amount is typically {@link Period} but may be any other type implementing
|
|
659
|
+
* the {@link TemporalAmount} interface.
|
|
660
|
+
* <p>
|
|
661
|
+
* The calculation is delegated to the amount object by calling
|
|
662
|
+
* {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free
|
|
663
|
+
* to implement the addition in any way it wishes, however it typically
|
|
664
|
+
* calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation
|
|
665
|
+
* of the amount implementation to determine if it can be successfully added.
|
|
666
|
+
* <p>
|
|
667
|
+
* This instance is immutable and unaffected by this method call.
|
|
668
|
+
* @param amountToAdd the amount to add, not null
|
|
669
|
+
* @return a {@code LocalDate} based on this date with the addition made, not null
|
|
670
|
+
* @throws DateTimeException if the addition cannot be made
|
|
671
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
672
|
+
*/
|
|
673
|
+
plus(amountToAdd: TemporalAmount): LocalDate;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Returns a copy of this date with the specified amount added.
|
|
677
|
+
* <p>
|
|
678
|
+
* This returns a {@code LocalDate}, based on this one, with the amount
|
|
679
|
+
* in terms of the unit added. If it is not possible to add the amount, because the
|
|
680
|
+
* unit is not supported or for some other reason, an exception is thrown.
|
|
681
|
+
* <p>
|
|
682
|
+
* In some cases, adding the amount can cause the resulting date to become invalid.
|
|
683
|
+
* For example, adding one month to 31st January would result in 31st February.
|
|
684
|
+
* In cases like this, the unit is responsible for resolving the date.
|
|
685
|
+
* Typically it will choose the previous valid date, which would be the last valid
|
|
686
|
+
* day of February in this example.
|
|
687
|
+
* <p>
|
|
688
|
+
* If the field is a {@link ChronoUnit} then the addition is implemented here.
|
|
689
|
+
* The supported fields behave as follows:
|
|
690
|
+
* <ul>
|
|
691
|
+
* <li>{@code DAYS} -
|
|
692
|
+
* Returns a {@code LocalDate} with the specified number of days added.
|
|
693
|
+
* This is equivalent to {@link #plusDays(long)}.
|
|
694
|
+
* <li>{@code WEEKS} -
|
|
695
|
+
* Returns a {@code LocalDate} with the specified number of weeks added.
|
|
696
|
+
* This is equivalent to {@link #plusWeeks(long)} and uses a 7 day week.
|
|
697
|
+
* <li>{@code MONTHS} -
|
|
698
|
+
* Returns a {@code LocalDate} with the specified number of months added.
|
|
699
|
+
* This is equivalent to {@link #plusMonths(long)}.
|
|
700
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
701
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
702
|
+
* valid value for the new month and year.
|
|
703
|
+
* <li>{@code YEARS} -
|
|
704
|
+
* Returns a {@code LocalDate} with the specified number of years added.
|
|
705
|
+
* This is equivalent to {@link #plusYears(long)}.
|
|
706
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
707
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
708
|
+
* valid value for the new month and year.
|
|
709
|
+
* <li>{@code DECADES} -
|
|
710
|
+
* Returns a {@code LocalDate} with the specified number of decades added.
|
|
711
|
+
* This is equivalent to calling {@link #plusYears(long)} with the amount
|
|
712
|
+
* multiplied by 10.
|
|
713
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
714
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
715
|
+
* valid value for the new month and year.
|
|
716
|
+
* <li>{@code CENTURIES} -
|
|
717
|
+
* Returns a {@code LocalDate} with the specified number of centuries added.
|
|
718
|
+
* This is equivalent to calling {@link #plusYears(long)} with the amount
|
|
719
|
+
* multiplied by 100.
|
|
720
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
721
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
722
|
+
* valid value for the new month and year.
|
|
723
|
+
* <li>{@code MILLENNIA} -
|
|
724
|
+
* Returns a {@code LocalDate} with the specified number of millennia added.
|
|
725
|
+
* This is equivalent to calling {@link #plusYears(long)} with the amount
|
|
726
|
+
* multiplied by 1,000.
|
|
727
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
728
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
729
|
+
* valid value for the new month and year.
|
|
730
|
+
* <li>{@code ERAS} -
|
|
731
|
+
* Returns a {@code LocalDate} with the specified number of eras added.
|
|
732
|
+
* Only two eras are supported so the amount must be one, zero or minus one.
|
|
733
|
+
* If the amount is non-zero then the year is changed such that the year-of-era
|
|
734
|
+
* is unchanged.
|
|
735
|
+
* The day-of-month will be unchanged unless it would be invalid for the new
|
|
736
|
+
* month and year. In that case, the day-of-month is adjusted to the maximum
|
|
737
|
+
* valid value for the new month and year.
|
|
738
|
+
* </ul>
|
|
739
|
+
* <p>
|
|
740
|
+
* All other {@code ChronoUnit} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
741
|
+
* <p>
|
|
742
|
+
* If the field is not a {@code ChronoUnit}, then the result of this method
|
|
743
|
+
* is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)}
|
|
744
|
+
* passing {@code this} as the argument. In this case, the unit determines
|
|
745
|
+
* whether and how to perform the addition.
|
|
746
|
+
* <p>
|
|
747
|
+
* This instance is immutable and unaffected by this method call.
|
|
748
|
+
* @param amountToAdd the amount of the unit to add to the result, may be negative
|
|
749
|
+
* @param unit the unit of the amount to add, not null
|
|
750
|
+
* @return a {@code LocalDate} based on this date with the specified amount added, not null
|
|
751
|
+
* @throws DateTimeException if the addition cannot be made
|
|
752
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
753
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
754
|
+
*/
|
|
755
|
+
plus(amountToAdd: number, unit: TemporalUnit): LocalDate;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* Returns a copy of this {@code LocalDate} with the specified number of years added.
|
|
759
|
+
* <p>
|
|
760
|
+
* This method adds the specified amount to the years field in three steps:
|
|
761
|
+
* <ol>
|
|
762
|
+
* <li>Add the input years to the year field</li>
|
|
763
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
764
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
765
|
+
* </ol>
|
|
766
|
+
* <p>
|
|
767
|
+
* For example, 2008-02-29 (leap year) plus one year would result in the
|
|
768
|
+
* invalid date 2009-02-29 (standard year). Instead of returning an invalid
|
|
769
|
+
* result, the last valid day of the month, 2009-02-28, is selected instead.
|
|
770
|
+
* <p>
|
|
771
|
+
* This instance is immutable and unaffected by this method call.
|
|
772
|
+
* @param yearsToAdd the years to add, may be negative
|
|
773
|
+
* @return a {@code LocalDate} based on this date with the years added, not null
|
|
774
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
775
|
+
*/
|
|
776
|
+
plusYears(yearsToAdd: number): LocalDate;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Returns a copy of this {@code LocalDate} with the specified number of months added.
|
|
780
|
+
* <p>
|
|
781
|
+
* This method adds the specified amount to the months field in three steps:
|
|
782
|
+
* <ol>
|
|
783
|
+
* <li>Add the input months to the month-of-year field</li>
|
|
784
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
785
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
786
|
+
* </ol>
|
|
787
|
+
* <p>
|
|
788
|
+
* For example, 2007-03-31 plus one month would result in the invalid date
|
|
789
|
+
* 2007-04-31. Instead of returning an invalid result, the last valid day
|
|
790
|
+
* of the month, 2007-04-30, is selected instead.
|
|
791
|
+
* <p>
|
|
792
|
+
* This instance is immutable and unaffected by this method call.
|
|
793
|
+
* @param monthsToAdd the months to add, may be negative
|
|
794
|
+
* @return a {@code LocalDate} based on this date with the months added, not null
|
|
795
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
796
|
+
*/
|
|
797
|
+
plusMonths(monthsToAdd: number): LocalDate;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Returns a copy of this {@code LocalDate} with the specified number of weeks added.
|
|
801
|
+
* <p>
|
|
802
|
+
* This method adds the specified amount in weeks to the days field incrementing
|
|
803
|
+
* the month and year fields as necessary to ensure the result remains valid.
|
|
804
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
805
|
+
* <p>
|
|
806
|
+
* For example, 2008-12-31 plus one week would result in 2009-01-07.
|
|
807
|
+
* <p>
|
|
808
|
+
* This instance is immutable and unaffected by this method call.
|
|
809
|
+
* @param weeksToAdd the weeks to add, may be negative
|
|
810
|
+
* @return a {@code LocalDate} based on this date with the weeks added, not null
|
|
811
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
812
|
+
*/
|
|
813
|
+
plusWeeks(weeksToAdd: number): LocalDate;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Returns a copy of this {@code LocalDate} with the specified number of days added.
|
|
817
|
+
* <p>
|
|
818
|
+
* This method adds the specified amount to the days field incrementing the
|
|
819
|
+
* month and year fields as necessary to ensure the result remains valid.
|
|
820
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
821
|
+
* <p>
|
|
822
|
+
* For example, 2008-12-31 plus one day would result in 2009-01-01.
|
|
823
|
+
* <p>
|
|
824
|
+
* This instance is immutable and unaffected by this method call.
|
|
825
|
+
* @param daysToAdd the days to add, may be negative
|
|
826
|
+
* @return a {@code LocalDate} based on this date with the days added, not null
|
|
827
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
828
|
+
*/
|
|
829
|
+
plusDays(daysToAdd: number): LocalDate;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Returns a copy of this date with the specified amount subtracted.
|
|
833
|
+
* <p>
|
|
834
|
+
* This returns a {@code LocalDate}, based on this one, with the specified amount subtracted.
|
|
835
|
+
* The amount is typically {@link Period} but may be any other type implementing
|
|
836
|
+
* the {@link TemporalAmount} interface.
|
|
837
|
+
* <p>
|
|
838
|
+
* The calculation is delegated to the amount object by calling
|
|
839
|
+
* {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free
|
|
840
|
+
* to implement the subtraction in any way it wishes, however it typically
|
|
841
|
+
* calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation
|
|
842
|
+
* of the amount implementation to determine if it can be successfully subtracted.
|
|
843
|
+
* <p>
|
|
844
|
+
* This instance is immutable and unaffected by this method call.
|
|
845
|
+
* @param amountToSubtract the amount to subtract, not null
|
|
846
|
+
* @return a {@code LocalDate} based on this date with the subtraction made, not null
|
|
847
|
+
* @throws DateTimeException if the subtraction cannot be made
|
|
848
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
849
|
+
*/
|
|
850
|
+
minus(amountToSubtract: TemporalAmount): LocalDate;
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* Returns a copy of this date with the specified amount subtracted.
|
|
854
|
+
* <p>
|
|
855
|
+
* This returns a {@code LocalDate}, based on this one, with the amount
|
|
856
|
+
* in terms of the unit subtracted. If it is not possible to subtract the amount,
|
|
857
|
+
* because the unit is not supported or for some other reason, an exception is thrown.
|
|
858
|
+
* <p>
|
|
859
|
+
* This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated.
|
|
860
|
+
* See that method for a full description of how addition, and thus subtraction, works.
|
|
861
|
+
* <p>
|
|
862
|
+
* This instance is immutable and unaffected by this method call.
|
|
863
|
+
* @param amountToSubtract the amount of the unit to subtract from the result, may be negative
|
|
864
|
+
* @param unit the unit of the amount to subtract, not null
|
|
865
|
+
* @return a {@code LocalDate} based on this date with the specified amount subtracted, not null
|
|
866
|
+
* @throws DateTimeException if the subtraction cannot be made
|
|
867
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
868
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
869
|
+
*/
|
|
870
|
+
minus(amountToSubtract: number, unit: TemporalUnit): LocalDate;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Returns a copy of this {@code LocalDate} with the specified number of years subtracted.
|
|
874
|
+
* <p>
|
|
875
|
+
* This method subtracts the specified amount from the years field in three steps:
|
|
876
|
+
* <ol>
|
|
877
|
+
* <li>Subtract the input years from the year field</li>
|
|
878
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
879
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
880
|
+
* </ol>
|
|
881
|
+
* <p>
|
|
882
|
+
* For example, 2008-02-29 (leap year) minus one year would result in the
|
|
883
|
+
* invalid date 2007-02-29 (standard year). Instead of returning an invalid
|
|
884
|
+
* result, the last valid day of the month, 2007-02-28, is selected instead.
|
|
885
|
+
* <p>
|
|
886
|
+
* This instance is immutable and unaffected by this method call.
|
|
887
|
+
* @param yearsToSubtract the years to subtract, may be negative
|
|
888
|
+
* @return a {@code LocalDate} based on this date with the years subtracted, not null
|
|
889
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
890
|
+
*/
|
|
891
|
+
minusYears(yearsToSubtract: number): LocalDate;
|
|
892
|
+
|
|
893
|
+
/**
|
|
894
|
+
* Returns a copy of this {@code LocalDate} with the specified number of months subtracted.
|
|
895
|
+
* <p>
|
|
896
|
+
* This method subtracts the specified amount from the months field in three steps:
|
|
897
|
+
* <ol>
|
|
898
|
+
* <li>Subtract the input months from the month-of-year field</li>
|
|
899
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
900
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
901
|
+
* </ol>
|
|
902
|
+
* <p>
|
|
903
|
+
* For example, 2007-03-31 minus one month would result in the invalid date
|
|
904
|
+
* 2007-02-31. Instead of returning an invalid result, the last valid day
|
|
905
|
+
* of the month, 2007-02-28, is selected instead.
|
|
906
|
+
* <p>
|
|
907
|
+
* This instance is immutable and unaffected by this method call.
|
|
908
|
+
* @param monthsToSubtract the months to subtract, may be negative
|
|
909
|
+
* @return a {@code LocalDate} based on this date with the months subtracted, not null
|
|
910
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
911
|
+
*/
|
|
912
|
+
minusMonths(monthsToSubtract: number): LocalDate;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Returns a copy of this {@code LocalDate} with the specified number of weeks subtracted.
|
|
916
|
+
* <p>
|
|
917
|
+
* This method subtracts the specified amount in weeks from the days field decrementing
|
|
918
|
+
* the month and year fields as necessary to ensure the result remains valid.
|
|
919
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
920
|
+
* <p>
|
|
921
|
+
* For example, 2009-01-07 minus one week would result in 2008-12-31.
|
|
922
|
+
* <p>
|
|
923
|
+
* This instance is immutable and unaffected by this method call.
|
|
924
|
+
* @param weeksToSubtract the weeks to subtract, may be negative
|
|
925
|
+
* @return a {@code LocalDate} based on this date with the weeks subtracted, not null
|
|
926
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
927
|
+
*/
|
|
928
|
+
minusWeeks(weeksToSubtract: number): LocalDate;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Returns a copy of this {@code LocalDate} with the specified number of days subtracted.
|
|
932
|
+
* <p>
|
|
933
|
+
* This method subtracts the specified amount from the days field decrementing the
|
|
934
|
+
* month and year fields as necessary to ensure the result remains valid.
|
|
935
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
936
|
+
* <p>
|
|
937
|
+
* For example, 2009-01-01 minus one day would result in 2008-12-31.
|
|
938
|
+
* <p>
|
|
939
|
+
* This instance is immutable and unaffected by this method call.
|
|
940
|
+
* @param daysToSubtract the days to subtract, may be negative
|
|
941
|
+
* @return a {@code LocalDate} based on this date with the days subtracted, not null
|
|
942
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
943
|
+
*/
|
|
944
|
+
minusDays(daysToSubtract: number): LocalDate;
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Queries this date using the specified query.
|
|
948
|
+
* <p>
|
|
949
|
+
* This queries this date using the specified query strategy object.
|
|
950
|
+
* The {@code TemporalQuery} object defines the logic to be used to
|
|
951
|
+
* obtain the result. Read the documentation of the query to understand
|
|
952
|
+
* what the result of this method will be.
|
|
953
|
+
* <p>
|
|
954
|
+
* The result of this method is obtained by invoking the
|
|
955
|
+
* {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
|
|
956
|
+
* specified query passing {@code this} as the argument.
|
|
957
|
+
* @param <R> the type of the result
|
|
958
|
+
* @param query the query to invoke, not null
|
|
959
|
+
* @return the query result, null may be returned (defined by the query)
|
|
960
|
+
* @throws DateTimeException if unable to query (defined by the query)
|
|
961
|
+
* @throws ArithmeticException if numeric overflow occurs (defined by the query)
|
|
962
|
+
*/
|
|
963
|
+
query(query: TemporalQuery): unknown;
|
|
964
|
+
|
|
965
|
+
/**
|
|
966
|
+
* Adjusts the specified temporal object to have the same date as this object.
|
|
967
|
+
* <p>
|
|
968
|
+
* This returns a temporal object of the same observable type as the input
|
|
969
|
+
* with the date changed to be the same as this.
|
|
970
|
+
* <p>
|
|
971
|
+
* The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)}
|
|
972
|
+
* passing {@link ChronoField#EPOCH_DAY} as the field.
|
|
973
|
+
* <p>
|
|
974
|
+
* In most cases, it is clearer to reverse the calling pattern by using
|
|
975
|
+
* {@link Temporal#with(TemporalAdjuster)}:
|
|
976
|
+
* <pre>
|
|
977
|
+
* // these two lines are equivalent, but the second approach is recommended
|
|
978
|
+
* temporal = thisLocalDate.adjustInto(temporal);
|
|
979
|
+
* temporal = temporal.with(thisLocalDate);
|
|
980
|
+
* </pre>
|
|
981
|
+
* <p>
|
|
982
|
+
* This instance is immutable and unaffected by this method call.
|
|
983
|
+
* @param temporal the target object to be adjusted, not null
|
|
984
|
+
* @return the adjusted object, not null
|
|
985
|
+
* @throws DateTimeException if unable to make the adjustment
|
|
986
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
987
|
+
*/
|
|
988
|
+
adjustInto(temporal: Temporal): Temporal;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Calculates the amount of time until another date in terms of the specified unit.
|
|
992
|
+
* <p>
|
|
993
|
+
* This calculates the amount of time between two {@code LocalDate}
|
|
994
|
+
* objects in terms of a single {@code TemporalUnit}.
|
|
995
|
+
* The start and end points are {@code this} and the specified date.
|
|
996
|
+
* The result will be negative if the end is before the start.
|
|
997
|
+
* The {@code Temporal} passed to this method is converted to a
|
|
998
|
+
* {@code LocalDate} using {@link #from(TemporalAccessor)}.
|
|
999
|
+
* For example, the amount in days between two dates can be calculated
|
|
1000
|
+
* using {@code startDate.until(endDate, DAYS)}.
|
|
1001
|
+
* <p>
|
|
1002
|
+
* The calculation returns a whole number, representing the number of
|
|
1003
|
+
* complete units between the two dates.
|
|
1004
|
+
* For example, the amount in months between 2012-06-15 and 2012-08-14
|
|
1005
|
+
* will only be one month as it is one day short of two months.
|
|
1006
|
+
* <p>
|
|
1007
|
+
* There are two equivalent ways of using this method.
|
|
1008
|
+
* The first is to invoke this method.
|
|
1009
|
+
* The second is to use {@link TemporalUnit#between(Temporal, Temporal)}:
|
|
1010
|
+
* <pre>
|
|
1011
|
+
* // these two lines are equivalent
|
|
1012
|
+
* amount = start.until(end, MONTHS);
|
|
1013
|
+
* amount = MONTHS.between(start, end);
|
|
1014
|
+
* </pre>
|
|
1015
|
+
* The choice should be made based on which makes the code more readable.
|
|
1016
|
+
* <p>
|
|
1017
|
+
* The calculation is implemented in this method for {@link ChronoUnit}.
|
|
1018
|
+
* The units {@code DAYS}, {@code WEEKS}, {@code MONTHS}, {@code YEARS},
|
|
1019
|
+
* {@code DECADES}, {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS}
|
|
1020
|
+
* are supported. Other {@code ChronoUnit} values will throw an exception.
|
|
1021
|
+
* <p>
|
|
1022
|
+
* If the unit is not a {@code ChronoUnit}, then the result of this method
|
|
1023
|
+
* is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)}
|
|
1024
|
+
* passing {@code this} as the first argument and the converted input temporal
|
|
1025
|
+
* as the second argument.
|
|
1026
|
+
* <p>
|
|
1027
|
+
* This instance is immutable and unaffected by this method call.
|
|
1028
|
+
* @param endExclusive the end date, exclusive, which is converted to a {@code LocalDate}, not null
|
|
1029
|
+
* @param unit the unit to measure the amount in, not null
|
|
1030
|
+
* @return the amount of time between this date and the end date
|
|
1031
|
+
* @throws DateTimeException if the amount cannot be calculated, or the end
 temporal cannot be converted to a {@code LocalDate}
|
|
1032
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
1033
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
1034
|
+
*/
|
|
1035
|
+
until(endExclusive: Temporal, unit: TemporalUnit): number;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Calculates the period between this date and another date as a {@code Period}.
|
|
1039
|
+
* <p>
|
|
1040
|
+
* This calculates the period between two dates in terms of years, months and days.
|
|
1041
|
+
* The start and end points are {@code this} and the specified date.
|
|
1042
|
+
* The result will be negative if the end is before the start.
|
|
1043
|
+
* The negative sign will be the same in each of year, month and day.
|
|
1044
|
+
* <p>
|
|
1045
|
+
* The calculation is performed using the ISO calendar system.
|
|
1046
|
+
* If necessary, the input date will be converted to ISO.
|
|
1047
|
+
* <p>
|
|
1048
|
+
* The start date is included, but the end date is not.
|
|
1049
|
+
* The period is calculated by removing complete months, then calculating
|
|
1050
|
+
* the remaining number of days, adjusting to ensure that both have the same sign.
|
|
1051
|
+
* The number of months is then normalized into years and months based on a 12 month year.
|
|
1052
|
+
* A month is considered to be complete if the end day-of-month is greater
|
|
1053
|
+
* than or equal to the start day-of-month.
|
|
1054
|
+
* For example, from {@code 2010-01-15} to {@code 2011-03-18} is "1 year, 2 months and 3 days".
|
|
1055
|
+
* <p>
|
|
1056
|
+
* There are two equivalent ways of using this method.
|
|
1057
|
+
* The first is to invoke this method.
|
|
1058
|
+
* The second is to use {@link Period#between(LocalDate, LocalDate)}:
|
|
1059
|
+
* <pre>
|
|
1060
|
+
* // these two lines are equivalent
|
|
1061
|
+
* period = start.until(end);
|
|
1062
|
+
* period = Period.between(start, end);
|
|
1063
|
+
* </pre>
|
|
1064
|
+
* The choice should be made based on which makes the code more readable.
|
|
1065
|
+
* @param endDateExclusive the end date, exclusive, which may be in any chronology, not null
|
|
1066
|
+
* @return the period between this date and the end date, not null
|
|
1067
|
+
*/
|
|
1068
|
+
until(endDateExclusive: ChronoLocalDate): Period;
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Formats this date using the specified formatter.
|
|
1072
|
+
* <p>
|
|
1073
|
+
* This date will be passed to the formatter to produce a string.
|
|
1074
|
+
* @param formatter the formatter to use, not null
|
|
1075
|
+
* @return the formatted date string, not null
|
|
1076
|
+
* @throws DateTimeException if an error occurs during printing
|
|
1077
|
+
*/
|
|
1078
|
+
format(formatter: DateTimeFormatter): string;
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Combines this date with a time to create a {@code LocalDateTime}.
|
|
1082
|
+
* <p>
|
|
1083
|
+
* This returns a {@code LocalDateTime} formed from this date at the specified time.
|
|
1084
|
+
* All possible combinations of date and time are valid.
|
|
1085
|
+
* @param time the time to combine with, not null
|
|
1086
|
+
* @return the local date-time formed from this date and the specified time, not null
|
|
1087
|
+
*/
|
|
1088
|
+
atTime(time: LocalTime): LocalDateTime;
|
|
1089
|
+
|
|
1090
|
+
/**
|
|
1091
|
+
* Combines this date with a time to create a {@code LocalDateTime}.
|
|
1092
|
+
* <p>
|
|
1093
|
+
* This returns a {@code LocalDateTime} formed from this date at the
|
|
1094
|
+
* specified hour and minute.
|
|
1095
|
+
* The seconds and nanosecond fields will be set to zero.
|
|
1096
|
+
* The individual time fields must be within their valid range.
|
|
1097
|
+
* All possible combinations of date and time are valid.
|
|
1098
|
+
* @param hour the hour-of-day to use, from 0 to 23
|
|
1099
|
+
* @param minute the minute-of-hour to use, from 0 to 59
|
|
1100
|
+
* @return the local date-time formed from this date and the specified time, not null
|
|
1101
|
+
* @throws DateTimeException if the value of any field is out of range
|
|
1102
|
+
*/
|
|
1103
|
+
atTime(hour: number, minute: number): LocalDateTime;
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* Combines this date with a time to create a {@code LocalDateTime}.
|
|
1107
|
+
* <p>
|
|
1108
|
+
* This returns a {@code LocalDateTime} formed from this date at the
|
|
1109
|
+
* specified hour, minute and second.
|
|
1110
|
+
* The nanosecond field will be set to zero.
|
|
1111
|
+
* The individual time fields must be within their valid range.
|
|
1112
|
+
* All possible combinations of date and time are valid.
|
|
1113
|
+
* @param hour the hour-of-day to use, from 0 to 23
|
|
1114
|
+
* @param minute the minute-of-hour to use, from 0 to 59
|
|
1115
|
+
* @param second the second-of-minute to represent, from 0 to 59
|
|
1116
|
+
* @return the local date-time formed from this date and the specified time, not null
|
|
1117
|
+
* @throws DateTimeException if the value of any field is out of range
|
|
1118
|
+
*/
|
|
1119
|
+
atTime(hour: number, minute: number, second: number): LocalDateTime;
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Combines this date with a time to create a {@code LocalDateTime}.
|
|
1123
|
+
* <p>
|
|
1124
|
+
* This returns a {@code LocalDateTime} formed from this date at the
|
|
1125
|
+
* specified hour, minute, second and nanosecond.
|
|
1126
|
+
* The individual time fields must be within their valid range.
|
|
1127
|
+
* All possible combinations of date and time are valid.
|
|
1128
|
+
* @param hour the hour-of-day to use, from 0 to 23
|
|
1129
|
+
* @param minute the minute-of-hour to use, from 0 to 59
|
|
1130
|
+
* @param second the second-of-minute to represent, from 0 to 59
|
|
1131
|
+
* @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999
|
|
1132
|
+
* @return the local date-time formed from this date and the specified time, not null
|
|
1133
|
+
* @throws DateTimeException if the value of any field is out of range
|
|
1134
|
+
*/
|
|
1135
|
+
atTime(
|
|
1136
|
+
hour: number,
|
|
1137
|
+
minute: number,
|
|
1138
|
+
second: number,
|
|
1139
|
+
nanoOfSecond: number
|
|
1140
|
+
): LocalDateTime;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Combines this date with an offset time to create an {@code OffsetDateTime}.
|
|
1144
|
+
* <p>
|
|
1145
|
+
* This returns an {@code OffsetDateTime} formed from this date at the specified time.
|
|
1146
|
+
* All possible combinations of date and time are valid.
|
|
1147
|
+
* @param time the time to combine with, not null
|
|
1148
|
+
* @return the offset date-time formed from this date and the specified time, not null
|
|
1149
|
+
*/
|
|
1150
|
+
atTime(time: OffsetTime): OffsetDateTime;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Combines this date with the time of midnight to create a {@code LocalDateTime}
|
|
1154
|
+
* at the start of this date.
|
|
1155
|
+
* <p>
|
|
1156
|
+
* This returns a {@code LocalDateTime} formed from this date at the time of
|
|
1157
|
+
* midnight, 00:00, at the start of this date.
|
|
1158
|
+
* @return the local date-time of midnight at the start of this date, not null
|
|
1159
|
+
*/
|
|
1160
|
+
atStartOfDay(): LocalDateTime;
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Returns a zoned date-time from this date at the earliest valid time according
|
|
1164
|
+
* to the rules in the time-zone.
|
|
1165
|
+
* <p>
|
|
1166
|
+
* Time-zone rules, such as daylight savings, mean that not every local date-time
|
|
1167
|
+
* is valid for the specified zone, thus the local date-time may not be midnight.
|
|
1168
|
+
* <p>
|
|
1169
|
+
* In most cases, there is only one valid offset for a local date-time.
|
|
1170
|
+
* In the case of an overlap, there are two valid offsets, and the earlier one is used,
|
|
1171
|
+
* corresponding to the first occurrence of midnight on the date.
|
|
1172
|
+
* In the case of a gap, the zoned date-time will represent the instant just after the gap.
|
|
1173
|
+
* <p>
|
|
1174
|
+
* If the zone ID is a {@link ZoneOffset}, then the result always has a time of midnight.
|
|
1175
|
+
* <p>
|
|
1176
|
+
* To convert to a specific time in a given time-zone call {@link #atTime(LocalTime)}
|
|
1177
|
+
* followed by {@link LocalDateTime#atZone(ZoneId)}.
|
|
1178
|
+
* @param zone the zone ID to use, not null
|
|
1179
|
+
* @return the zoned date-time formed from this date and the earliest valid time for the zone, not null
|
|
1180
|
+
*/
|
|
1181
|
+
atStartOfDay(zone: ZoneId): ZonedDateTime;
|
|
1182
|
+
|
|
1183
|
+
toEpochDay(): number;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Compares this date to another date.
|
|
1187
|
+
* <p>
|
|
1188
|
+
* The comparison is primarily based on the date, from earliest to latest.
|
|
1189
|
+
* It is "consistent with equals", as defined by {@link Comparable}.
|
|
1190
|
+
* <p>
|
|
1191
|
+
* If all the dates being compared are instances of {@code LocalDate},
|
|
1192
|
+
* then the comparison will be entirely based on the date.
|
|
1193
|
+
* If some dates being compared are in different chronologies, then the
|
|
1194
|
+
* chronology is also considered, see {@link java.time.chrono.ChronoLocalDate#compareTo}.
|
|
1195
|
+
* @param other the other date to compare to, not null
|
|
1196
|
+
* @return the comparator value, negative if less, positive if greater
|
|
1197
|
+
*/
|
|
1198
|
+
compareTo(other: ChronoLocalDate): number;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* Checks if this date is after the specified date.
|
|
1202
|
+
* <p>
|
|
1203
|
+
* This checks to see if this date represents a point on the
|
|
1204
|
+
* local time-line after the other date.
|
|
1205
|
+
* <pre>
|
|
1206
|
+
* LocalDate a = LocalDate.of(2012, 6, 30);
|
|
1207
|
+
* LocalDate b = LocalDate.of(2012, 7, 1);
|
|
1208
|
+
* a.isAfter(b) == false
|
|
1209
|
+
* a.isAfter(a) == false
|
|
1210
|
+
* b.isAfter(a) == true
|
|
1211
|
+
* </pre>
|
|
1212
|
+
* <p>
|
|
1213
|
+
* This method only considers the position of the two dates on the local time-line.
|
|
1214
|
+
* It does not take into account the chronology, or calendar system.
|
|
1215
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDate)},
|
|
1216
|
+
* but is the same approach as {@link ChronoLocalDate#timeLineOrder()}.
|
|
1217
|
+
* @param other the other date to compare to, not null
|
|
1218
|
+
* @return true if this date is after the specified date
|
|
1219
|
+
*/
|
|
1220
|
+
isAfter(other: ChronoLocalDate): boolean;
|
|
1221
|
+
|
|
1222
|
+
/**
|
|
1223
|
+
* Checks if this date is before the specified date.
|
|
1224
|
+
* <p>
|
|
1225
|
+
* This checks to see if this date represents a point on the
|
|
1226
|
+
* local time-line before the other date.
|
|
1227
|
+
* <pre>
|
|
1228
|
+
* LocalDate a = LocalDate.of(2012, 6, 30);
|
|
1229
|
+
* LocalDate b = LocalDate.of(2012, 7, 1);
|
|
1230
|
+
* a.isBefore(b) == true
|
|
1231
|
+
* a.isBefore(a) == false
|
|
1232
|
+
* b.isBefore(a) == false
|
|
1233
|
+
* </pre>
|
|
1234
|
+
* <p>
|
|
1235
|
+
* This method only considers the position of the two dates on the local time-line.
|
|
1236
|
+
* It does not take into account the chronology, or calendar system.
|
|
1237
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDate)},
|
|
1238
|
+
* but is the same approach as {@link ChronoLocalDate#timeLineOrder()}.
|
|
1239
|
+
* @param other the other date to compare to, not null
|
|
1240
|
+
* @return true if this date is before the specified date
|
|
1241
|
+
*/
|
|
1242
|
+
isBefore(other: ChronoLocalDate): boolean;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Checks if this date is equal to the specified date.
|
|
1246
|
+
* <p>
|
|
1247
|
+
* This checks to see if this date represents the same point on the
|
|
1248
|
+
* local time-line as the other date.
|
|
1249
|
+
* <pre>
|
|
1250
|
+
* LocalDate a = LocalDate.of(2012, 6, 30);
|
|
1251
|
+
* LocalDate b = LocalDate.of(2012, 7, 1);
|
|
1252
|
+
* a.isEqual(b) == false
|
|
1253
|
+
* a.isEqual(a) == true
|
|
1254
|
+
* b.isEqual(a) == false
|
|
1255
|
+
* </pre>
|
|
1256
|
+
* <p>
|
|
1257
|
+
* This method only considers the position of the two dates on the local time-line.
|
|
1258
|
+
* It does not take into account the chronology, or calendar system.
|
|
1259
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDate)}
|
|
1260
|
+
* but is the same approach as {@link ChronoLocalDate#timeLineOrder()}.
|
|
1261
|
+
* @param other the other date to compare to, not null
|
|
1262
|
+
* @return true if this date is equal to the specified date
|
|
1263
|
+
*/
|
|
1264
|
+
isEqual(other: ChronoLocalDate): boolean;
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
* Checks if this date is equal to another date.
|
|
1268
|
+
* <p>
|
|
1269
|
+
* Compares this {@code LocalDate} with another ensuring that the date is the same.
|
|
1270
|
+
* <p>
|
|
1271
|
+
* Only objects of type {@code LocalDate} are compared, other types return false.
|
|
1272
|
+
* To compare the dates of two {@code TemporalAccessor} instances, including dates
|
|
1273
|
+
* in two different chronologies, use {@link ChronoField#EPOCH_DAY} as a comparator.
|
|
1274
|
+
* @param obj the object to check, null returns false
|
|
1275
|
+
* @return true if this is equal to the other date
|
|
1276
|
+
*/
|
|
1277
|
+
equals(obj: unknown): boolean;
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* A hash code for this date.
|
|
1281
|
+
* @return a suitable hash code
|
|
1282
|
+
*/
|
|
1283
|
+
hashCode(): number;
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Outputs this date as a {@code String}, such as {@code 2007-12-03}.
|
|
1287
|
+
* <p>
|
|
1288
|
+
* The output will be in the ISO-8601 format {@code uuuu-MM-dd}.
|
|
1289
|
+
* @return a string representation of this date, not null
|
|
1290
|
+
*/
|
|
1291
|
+
toString(): string;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* The minimum supported {@code LocalDate}, '-999999999-01-01'.
|
|
1295
|
+
* This could be used by an application as a "far past" date.
|
|
1296
|
+
|
|
1297
|
+
*/
|
|
1298
|
+
MIN: LocalDate;
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* The maximum supported {@code LocalDate}, '+999999999-12-31'.
|
|
1302
|
+
* This could be used by an application as a "far future" date.
|
|
1303
|
+
|
|
1304
|
+
*/
|
|
1305
|
+
MAX: LocalDate;
|
|
1306
|
+
};
|