@sitevision/api 2023.2.1 → 2023.2.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +903 -0
- package/types/java/io/File/index.js +50 -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 +85 -0
- package/types/java/lang/Boolean/index.js +14 -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 +1229 -0
- package/types/java/lang/Class/index.js +71 -0
- package/types/java/lang/ClassLoader/index.d.ts +619 -0
- package/types/java/lang/ClassLoader/index.js +31 -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 +273 -0
- package/types/java/lang/Double/index.js +21 -0
- package/types/java/lang/Enum/index.d.ts +118 -0
- package/types/java/lang/Enum/index.js +18 -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 +258 -0
- package/types/java/lang/Float/index.js +21 -0
- package/types/java/lang/Integer/index.d.ts +142 -0
- package/types/java/lang/Integer/index.js +19 -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 +148 -0
- package/types/java/lang/Long/index.js +19 -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 +188 -0
- package/types/java/lang/Package/index.js +27 -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 +1234 -0
- package/types/java/lang/String/index.js +44 -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 +81 -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 +1278 -0
- package/types/java/math/BigDecimal/index.js +49 -0
- package/types/java/math/BigInteger/index.d.ts +567 -0
- package/types/java/math/BigInteger/index.js +54 -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/InetAddress/index.d.ts +356 -0
- package/types/java/net/InetAddress/index.js +27 -0
- package/types/java/net/NetworkInterface/index.d.ts +172 -0
- package/types/java/net/NetworkInterface/index.js +26 -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 +934 -0
- package/types/java/net/URI/index.js +36 -0
- package/types/java/net/URL/index.d.ts +355 -0
- package/types/java/net/URL/index.js +28 -0
- package/types/java/net/URLConnection/index.d.ts +648 -0
- package/types/java/net/URLConnection/index.js +49 -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 +410 -0
- package/types/java/nio/channels/AsynchronousFileChannel/index.js +16 -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 +628 -0
- package/types/java/nio/channels/FileChannel/index.js +20 -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 +415 -0
- package/types/java/nio/charset/Charset/index.js +23 -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 +571 -0
- package/types/java/nio/file/spi/FileSystemProvider/index.js +34 -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 +470 -0
- package/types/java/text/DateFormat/index.js +23 -0
- package/types/java/text/DateFormatSymbols/index.d.ts +245 -0
- package/types/java/text/DateFormatSymbols/index.js +28 -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 +463 -0
- package/types/java/text/NumberFormat/index.js +31 -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 +111 -0
- package/types/java/time/Clock/index.js +15 -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 +539 -0
- package/types/java/time/Duration/index.js +46 -0
- package/types/java/time/Instant/index.d.ts +776 -0
- package/types/java/time/Instant/index.js +37 -0
- package/types/java/time/LocalDate/index.d.ts +1176 -0
- package/types/java/time/LocalDate/index.js +53 -0
- package/types/java/time/LocalDateTime/index.d.ts +1116 -0
- package/types/java/time/LocalDateTime/index.js +66 -0
- package/types/java/time/LocalTime/index.d.ts +822 -0
- package/types/java/time/LocalTime/index.js +47 -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 +1214 -0
- package/types/java/time/OffsetDateTime/index.js +74 -0
- package/types/java/time/OffsetTime/index.d.ts +822 -0
- package/types/java/time/OffsetTime/index.js +49 -0
- package/types/java/time/Period/index.d.ts +468 -0
- package/types/java/time/Period/index.js +37 -0
- package/types/java/time/ZoneId/index.d.ts +223 -0
- package/types/java/time/ZoneId/index.js +16 -0
- package/types/java/time/ZoneOffset/index.d.ts +281 -0
- package/types/java/time/ZoneOffset/index.js +22 -0
- package/types/java/time/ZonedDateTime/index.d.ts +1302 -0
- package/types/java/time/ZonedDateTime/index.js +68 -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 +1265 -0
- package/types/java/time/format/DateTimeFormatter/index.js +28 -0
- package/types/java/time/format/DecimalStyle/index.d.ts +116 -0
- package/types/java/time/format/DecimalStyle/index.js +20 -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 +155 -0
- package/types/java/time/temporal/ValueRange/index.js +22 -0
- package/types/java/time/zone/ZoneOffsetTransition/index.d.ts +161 -0
- package/types/java/time/zone/ZoneOffsetTransition/index.js +23 -0
- package/types/java/time/zone/ZoneRules/index.d.ts +295 -0
- package/types/java/time/zone/ZoneRules/index.js +24 -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 +1430 -0
- package/types/java/util/Calendar/index.js +52 -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 +135 -0
- package/types/java/util/Currency/index.js +15 -0
- package/types/java/util/Date/index.d.ts +449 -0
- package/types/java/util/Date/index.js +35 -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 +1016 -0
- package/types/java/util/Locale/index.js +32 -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 +143 -0
- package/types/java/util/Optional/index.js +21 -0
- package/types/java/util/OptionalDouble/index.d.ts +108 -0
- package/types/java/util/OptionalDouble/index.js +18 -0
- package/types/java/util/OptionalInt/index.d.ts +107 -0
- package/types/java/util/OptionalInt/index.js +18 -0
- package/types/java/util/OptionalLong/index.d.ts +108 -0
- package/types/java/util/OptionalLong/index.js +18 -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 +370 -0
- package/types/java/util/TimeZone/index.js +22 -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 +195 -0
- package/types/javax/jcr/PropertyType/index.js +8 -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 +54 -0
- package/types/javax/jcr/version/OnParentVersionAction/index.js +8 -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,1116 @@
|
|
|
1
|
+
import type { TemporalField } from "../temporal/TemporalField";
|
|
2
|
+
|
|
3
|
+
import type { TemporalUnit } from "../temporal/TemporalUnit";
|
|
4
|
+
import type { ValueRange } from "../temporal/ValueRange";
|
|
5
|
+
|
|
6
|
+
import type { LocalDate } from "../LocalDate";
|
|
7
|
+
import type { Month } from "../Month";
|
|
8
|
+
import type { DayOfWeek } from "../DayOfWeek";
|
|
9
|
+
import type { LocalTime } from "../LocalTime";
|
|
10
|
+
import type { TemporalAdjuster } from "../temporal/TemporalAdjuster";
|
|
11
|
+
import type { TemporalAmount } from "../temporal/TemporalAmount";
|
|
12
|
+
import type { TemporalQuery } from "../temporal/TemporalQuery";
|
|
13
|
+
|
|
14
|
+
import type { Temporal } from "../temporal/Temporal";
|
|
15
|
+
import type { DateTimeFormatter } from "../format/DateTimeFormatter";
|
|
16
|
+
import type { String } from "../../lang/String";
|
|
17
|
+
import type { ZoneOffset } from "../ZoneOffset";
|
|
18
|
+
import type { OffsetDateTime } from "../OffsetDateTime";
|
|
19
|
+
import type { ZoneId } from "../ZoneId";
|
|
20
|
+
import type { ZonedDateTime } from "../ZonedDateTime";
|
|
21
|
+
import type { ChronoLocalDateTime } from "../chrono/ChronoLocalDateTime";
|
|
22
|
+
import type { Object } from "../../lang/Object";
|
|
23
|
+
import type { Serializable } from "../../io/Serializable";
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A date-time without a time-zone in the ISO-8601 calendar system,
|
|
27
|
+
* such as {@code 2007-12-03T10:15:30}.
|
|
28
|
+
* <p>
|
|
29
|
+
* {@code LocalDateTime} is an immutable date-time object that represents a date-time,
|
|
30
|
+
* often viewed as year-month-day-hour-minute-second. Other date and time fields,
|
|
31
|
+
* such as day-of-year, day-of-week and week-of-year, can also be accessed.
|
|
32
|
+
* Time is represented to nanosecond precision.
|
|
33
|
+
* For example, the value "2nd October 2007 at 13:45.30.123456789" can be
|
|
34
|
+
* stored in a {@code LocalDateTime}.
|
|
35
|
+
* <p>
|
|
36
|
+
* This class does not store or represent a time-zone.
|
|
37
|
+
* Instead, it is a description of the date, as used for birthdays, combined with
|
|
38
|
+
* the local time as seen on a wall clock.
|
|
39
|
+
* It cannot represent an instant on the time-line without additional information
|
|
40
|
+
* such as an offset or time-zone.
|
|
41
|
+
* <p>
|
|
42
|
+
* The ISO-8601 calendar system is the modern civil calendar system used today
|
|
43
|
+
* in most of the world. It is equivalent to the proleptic Gregorian calendar
|
|
44
|
+
* system, in which today's rules for leap years are applied for all time.
|
|
45
|
+
* For most applications written today, the ISO-8601 rules are entirely suitable.
|
|
46
|
+
* However, any application that makes use of historical dates, and requires them
|
|
47
|
+
* to be accurate will find the ISO-8601 approach unsuitable.
|
|
48
|
+
*
|
|
49
|
+
* <p>
|
|
50
|
+
* This is a <a href="{@docRoot}/java/lang/doc-files/ValueBased.html">value-based</a>
|
|
51
|
+
* class; use of identity-sensitive operations (including reference equality
|
|
52
|
+
* ({@code ==}), identity hash code, or synchronization) on instances of
|
|
53
|
+
* {@code LocalDateTime} may have unpredictable results and should be avoided.
|
|
54
|
+
* The {@code equals} method should be used for comparisons.
|
|
55
|
+
* @implSpec This class is immutable and thread-safe.
|
|
56
|
+
* @since 1.8
|
|
57
|
+
*/
|
|
58
|
+
export type LocalDateTime = Object &
|
|
59
|
+
Temporal &
|
|
60
|
+
TemporalAdjuster &
|
|
61
|
+
ChronoLocalDateTime &
|
|
62
|
+
Serializable & {
|
|
63
|
+
/**
|
|
64
|
+
* Checks if the specified field is supported.
|
|
65
|
+
* <p>
|
|
66
|
+
* This checks if this date-time can be queried for the specified field.
|
|
67
|
+
* If false, then calling the {@link #range(TemporalField) range},
|
|
68
|
+
* {@link #get(TemporalField) get} and {@link #with(TemporalField, long)}
|
|
69
|
+
* methods will throw an exception.
|
|
70
|
+
* <p>
|
|
71
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
72
|
+
* The supported fields are:
|
|
73
|
+
* <ul>
|
|
74
|
+
* <li>{@code NANO_OF_SECOND}
|
|
75
|
+
* <li>{@code NANO_OF_DAY}
|
|
76
|
+
* <li>{@code MICRO_OF_SECOND}
|
|
77
|
+
* <li>{@code MICRO_OF_DAY}
|
|
78
|
+
* <li>{@code MILLI_OF_SECOND}
|
|
79
|
+
* <li>{@code MILLI_OF_DAY}
|
|
80
|
+
* <li>{@code SECOND_OF_MINUTE}
|
|
81
|
+
* <li>{@code SECOND_OF_DAY}
|
|
82
|
+
* <li>{@code MINUTE_OF_HOUR}
|
|
83
|
+
* <li>{@code MINUTE_OF_DAY}
|
|
84
|
+
* <li>{@code HOUR_OF_AMPM}
|
|
85
|
+
* <li>{@code CLOCK_HOUR_OF_AMPM}
|
|
86
|
+
* <li>{@code HOUR_OF_DAY}
|
|
87
|
+
* <li>{@code CLOCK_HOUR_OF_DAY}
|
|
88
|
+
* <li>{@code AMPM_OF_DAY}
|
|
89
|
+
* <li>{@code DAY_OF_WEEK}
|
|
90
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_MONTH}
|
|
91
|
+
* <li>{@code ALIGNED_DAY_OF_WEEK_IN_YEAR}
|
|
92
|
+
* <li>{@code DAY_OF_MONTH}
|
|
93
|
+
* <li>{@code DAY_OF_YEAR}
|
|
94
|
+
* <li>{@code EPOCH_DAY}
|
|
95
|
+
* <li>{@code ALIGNED_WEEK_OF_MONTH}
|
|
96
|
+
* <li>{@code ALIGNED_WEEK_OF_YEAR}
|
|
97
|
+
* <li>{@code MONTH_OF_YEAR}
|
|
98
|
+
* <li>{@code PROLEPTIC_MONTH}
|
|
99
|
+
* <li>{@code YEAR_OF_ERA}
|
|
100
|
+
* <li>{@code YEAR}
|
|
101
|
+
* <li>{@code ERA}
|
|
102
|
+
* </ul>
|
|
103
|
+
* All other {@code ChronoField} instances will return false.
|
|
104
|
+
* <p>
|
|
105
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
106
|
+
* is obtained by invoking {@code TemporalField.isSupportedBy(TemporalAccessor)}
|
|
107
|
+
* passing {@code this} as the argument.
|
|
108
|
+
* Whether the field is supported is determined by the field.
|
|
109
|
+
* @param field the field to check, null returns false
|
|
110
|
+
* @return true if the field is supported on this date-time, false if not
|
|
111
|
+
*/
|
|
112
|
+
isSupported(field: TemporalField): boolean;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Checks if the specified unit is supported.
|
|
116
|
+
* <p>
|
|
117
|
+
* This checks if the specified unit can be added to, or subtracted from, this date-time.
|
|
118
|
+
* If false, then calling the {@link #plus(long, TemporalUnit)} and
|
|
119
|
+
* {@link #minus(long, TemporalUnit) minus} methods will throw an exception.
|
|
120
|
+
* <p>
|
|
121
|
+
* If the unit is a {@link ChronoUnit} then the query is implemented here.
|
|
122
|
+
* The supported units are:
|
|
123
|
+
* <ul>
|
|
124
|
+
* <li>{@code NANOS}
|
|
125
|
+
* <li>{@code MICROS}
|
|
126
|
+
* <li>{@code MILLIS}
|
|
127
|
+
* <li>{@code SECONDS}
|
|
128
|
+
* <li>{@code MINUTES}
|
|
129
|
+
* <li>{@code HOURS}
|
|
130
|
+
* <li>{@code HALF_DAYS}
|
|
131
|
+
* <li>{@code DAYS}
|
|
132
|
+
* <li>{@code WEEKS}
|
|
133
|
+
* <li>{@code MONTHS}
|
|
134
|
+
* <li>{@code YEARS}
|
|
135
|
+
* <li>{@code DECADES}
|
|
136
|
+
* <li>{@code CENTURIES}
|
|
137
|
+
* <li>{@code MILLENNIA}
|
|
138
|
+
* <li>{@code ERAS}
|
|
139
|
+
* </ul>
|
|
140
|
+
* All other {@code ChronoUnit} instances will return false.
|
|
141
|
+
* <p>
|
|
142
|
+
* If the unit is not a {@code ChronoUnit}, then the result of this method
|
|
143
|
+
* is obtained by invoking {@code TemporalUnit.isSupportedBy(Temporal)}
|
|
144
|
+
* passing {@code this} as the argument.
|
|
145
|
+
* Whether the unit is supported is determined by the unit.
|
|
146
|
+
* @param unit the unit to check, null returns false
|
|
147
|
+
* @return true if the unit can be added/subtracted, false if not
|
|
148
|
+
*/
|
|
149
|
+
isSupported(unit: TemporalUnit): boolean;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Gets the range of valid values for the specified field.
|
|
153
|
+
* <p>
|
|
154
|
+
* The range object expresses the minimum and maximum valid values for a field.
|
|
155
|
+
* This date-time is used to enhance the accuracy of the returned range.
|
|
156
|
+
* If it is not possible to return the range, because the field is not supported
|
|
157
|
+
* or for some other reason, an exception is thrown.
|
|
158
|
+
* <p>
|
|
159
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
160
|
+
* The {@link #isSupported(TemporalField) supported fields} will return
|
|
161
|
+
* appropriate range instances.
|
|
162
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
163
|
+
* <p>
|
|
164
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
165
|
+
* is obtained by invoking {@code TemporalField.rangeRefinedBy(TemporalAccessor)}
|
|
166
|
+
* passing {@code this} as the argument.
|
|
167
|
+
* Whether the range can be obtained is determined by the field.
|
|
168
|
+
* @param field the field to query the range for, not null
|
|
169
|
+
* @return the range of valid values for the field, not null
|
|
170
|
+
* @throws DateTimeException if the range for the field cannot be obtained
|
|
171
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
172
|
+
*/
|
|
173
|
+
range(field: TemporalField): ValueRange;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Gets the value of the specified field from this date-time as an {@code int}.
|
|
177
|
+
* <p>
|
|
178
|
+
* This queries this date-time for the value of the specified field.
|
|
179
|
+
* The returned value will always be within the valid range of values for the field.
|
|
180
|
+
* If it is not possible to return the value, because the field is not supported
|
|
181
|
+
* or for some other reason, an exception is thrown.
|
|
182
|
+
* <p>
|
|
183
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
184
|
+
* The {@link #isSupported(TemporalField) supported fields} will return valid
|
|
185
|
+
* values based on this date-time, except {@code NANO_OF_DAY}, {@code MICRO_OF_DAY},
|
|
186
|
+
* {@code EPOCH_DAY} and {@code PROLEPTIC_MONTH} which are too large to fit in
|
|
187
|
+
* an {@code int} and throw a {@code DateTimeException}.
|
|
188
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
189
|
+
* <p>
|
|
190
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
191
|
+
* is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)}
|
|
192
|
+
* passing {@code this} as the argument. Whether the value can be obtained,
|
|
193
|
+
* and what the value represents, is determined by the field.
|
|
194
|
+
* @param field the field to get, not null
|
|
195
|
+
* @return the value for the field
|
|
196
|
+
* @throws DateTimeException if a value for the field cannot be obtained or
 the value is outside the range of valid values for the field
|
|
197
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported or
 the range of values exceeds an {@code int}
|
|
198
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
199
|
+
*/
|
|
200
|
+
get(field: TemporalField): number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Gets the value of the specified field from this date-time as a {@code long}.
|
|
204
|
+
* <p>
|
|
205
|
+
* This queries this date-time for the value of the specified field.
|
|
206
|
+
* If it is not possible to return the value, because the field is not supported
|
|
207
|
+
* or for some other reason, an exception is thrown.
|
|
208
|
+
* <p>
|
|
209
|
+
* If the field is a {@link ChronoField} then the query is implemented here.
|
|
210
|
+
* The {@link #isSupported(TemporalField) supported fields} will return valid
|
|
211
|
+
* values based on this date-time.
|
|
212
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
213
|
+
* <p>
|
|
214
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
215
|
+
* is obtained by invoking {@code TemporalField.getFrom(TemporalAccessor)}
|
|
216
|
+
* passing {@code this} as the argument. Whether the value can be obtained,
|
|
217
|
+
* and what the value represents, is determined by the field.
|
|
218
|
+
* @param field the field to get, not null
|
|
219
|
+
* @return the value for the field
|
|
220
|
+
* @throws DateTimeException if a value for the field cannot be obtained
|
|
221
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
222
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
223
|
+
*/
|
|
224
|
+
getLong(field: TemporalField): number;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Gets the {@code LocalDate} part of this date-time.
|
|
228
|
+
* <p>
|
|
229
|
+
* This returns a {@code LocalDate} with the same year, month and day
|
|
230
|
+
* as this date-time.
|
|
231
|
+
* @return the date part of this date-time, not null
|
|
232
|
+
*/
|
|
233
|
+
toLocalDate(): LocalDate;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Gets the year field.
|
|
237
|
+
* <p>
|
|
238
|
+
* This method returns the primitive {@code int} value for the year.
|
|
239
|
+
* <p>
|
|
240
|
+
* The year returned by this method is proleptic as per {@code get(YEAR)}.
|
|
241
|
+
* To obtain the year-of-era, use {@code get(YEAR_OF_ERA)}.
|
|
242
|
+
* @return the year, from MIN_YEAR to MAX_YEAR
|
|
243
|
+
*/
|
|
244
|
+
getYear(): number;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Gets the month-of-year field from 1 to 12.
|
|
248
|
+
* <p>
|
|
249
|
+
* This method returns the month as an {@code int} from 1 to 12.
|
|
250
|
+
* Application code is frequently clearer if the enum {@link Month}
|
|
251
|
+
* is used by calling {@link #getMonth()}.
|
|
252
|
+
* @return the month-of-year, from 1 to 12
|
|
253
|
+
* @see #getMonth()
|
|
254
|
+
*/
|
|
255
|
+
getMonthValue(): number;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Gets the month-of-year field using the {@code Month} enum.
|
|
259
|
+
* <p>
|
|
260
|
+
* This method returns the enum {@link Month} for the month.
|
|
261
|
+
* This avoids confusion as to what {@code int} values mean.
|
|
262
|
+
* If you need access to the primitive {@code int} value then the enum
|
|
263
|
+
* provides the {@link Month#getValue() int value}.
|
|
264
|
+
* @return the month-of-year, not null
|
|
265
|
+
* @see #getMonthValue()
|
|
266
|
+
*/
|
|
267
|
+
getMonth(): Month;
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Gets the day-of-month field.
|
|
271
|
+
* <p>
|
|
272
|
+
* This method returns the primitive {@code int} value for the day-of-month.
|
|
273
|
+
* @return the day-of-month, from 1 to 31
|
|
274
|
+
*/
|
|
275
|
+
getDayOfMonth(): number;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Gets the day-of-year field.
|
|
279
|
+
* <p>
|
|
280
|
+
* This method returns the primitive {@code int} value for the day-of-year.
|
|
281
|
+
* @return the day-of-year, from 1 to 365, or 366 in a leap year
|
|
282
|
+
*/
|
|
283
|
+
getDayOfYear(): number;
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Gets the day-of-week field, which is an enum {@code DayOfWeek}.
|
|
287
|
+
* <p>
|
|
288
|
+
* This method returns the enum {@link DayOfWeek} for the day-of-week.
|
|
289
|
+
* This avoids confusion as to what {@code int} values mean.
|
|
290
|
+
* If you need access to the primitive {@code int} value then the enum
|
|
291
|
+
* provides the {@link DayOfWeek#getValue() int value}.
|
|
292
|
+
* <p>
|
|
293
|
+
* Additional information can be obtained from the {@code DayOfWeek}.
|
|
294
|
+
* This includes textual names of the values.
|
|
295
|
+
* @return the day-of-week, not null
|
|
296
|
+
*/
|
|
297
|
+
getDayOfWeek(): DayOfWeek;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Gets the {@code LocalTime} part of this date-time.
|
|
301
|
+
* <p>
|
|
302
|
+
* This returns a {@code LocalTime} with the same hour, minute, second and
|
|
303
|
+
* nanosecond as this date-time.
|
|
304
|
+
* @return the time part of this date-time, not null
|
|
305
|
+
*/
|
|
306
|
+
toLocalTime(): LocalTime;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Gets the hour-of-day field.
|
|
310
|
+
* @return the hour-of-day, from 0 to 23
|
|
311
|
+
*/
|
|
312
|
+
getHour(): number;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Gets the minute-of-hour field.
|
|
316
|
+
* @return the minute-of-hour, from 0 to 59
|
|
317
|
+
*/
|
|
318
|
+
getMinute(): number;
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Gets the second-of-minute field.
|
|
322
|
+
* @return the second-of-minute, from 0 to 59
|
|
323
|
+
*/
|
|
324
|
+
getSecond(): number;
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Gets the nano-of-second field.
|
|
328
|
+
* @return the nano-of-second, from 0 to 999,999,999
|
|
329
|
+
*/
|
|
330
|
+
getNano(): number;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Returns an adjusted copy of this date-time.
|
|
334
|
+
* <p>
|
|
335
|
+
* This returns a {@code LocalDateTime}, based on this one, with the date-time adjusted.
|
|
336
|
+
* The adjustment takes place using the specified adjuster strategy object.
|
|
337
|
+
* Read the documentation of the adjuster to understand what adjustment will be made.
|
|
338
|
+
* <p>
|
|
339
|
+
* A simple adjuster might simply set the one of the fields, such as the year field.
|
|
340
|
+
* A more complex adjuster might set the date to the last day of the month.
|
|
341
|
+
* <p>
|
|
342
|
+
* A selection of common adjustments is provided in
|
|
343
|
+
* {@link java.time.temporal.TemporalAdjusters TemporalAdjusters}.
|
|
344
|
+
* These include finding the "last day of the month" and "next Wednesday".
|
|
345
|
+
* Key date-time classes also implement the {@code TemporalAdjuster} interface,
|
|
346
|
+
* such as {@link Month} and {@link java.time.MonthDay MonthDay}.
|
|
347
|
+
* The adjuster is responsible for handling special cases, such as the varying
|
|
348
|
+
* lengths of month and leap years.
|
|
349
|
+
* <p>
|
|
350
|
+
* For example this code returns a date on the last day of July:
|
|
351
|
+
* <pre>
|
|
352
|
+
* import static java.time.Month.*;
|
|
353
|
+
* import static java.time.temporal.TemporalAdjusters.*;
|
|
354
|
+
*
|
|
355
|
+
* result = localDateTime.with(JULY).with(lastDayOfMonth());
|
|
356
|
+
* </pre>
|
|
357
|
+
* <p>
|
|
358
|
+
* The classes {@link LocalDate} and {@link LocalTime} implement {@code TemporalAdjuster},
|
|
359
|
+
* thus this method can be used to change the date, time or offset:
|
|
360
|
+
* <pre>
|
|
361
|
+
* result = localDateTime.with(date);
|
|
362
|
+
* result = localDateTime.with(time);
|
|
363
|
+
* </pre>
|
|
364
|
+
* <p>
|
|
365
|
+
* The result of this method is obtained by invoking the
|
|
366
|
+
* {@link TemporalAdjuster#adjustInto(Temporal)} method on the
|
|
367
|
+
* specified adjuster passing {@code this} as the argument.
|
|
368
|
+
* <p>
|
|
369
|
+
* This instance is immutable and unaffected by this method call.
|
|
370
|
+
* @param adjuster the adjuster to use, not null
|
|
371
|
+
* @return a {@code LocalDateTime} based on {@code this} with the adjustment made, not null
|
|
372
|
+
* @throws DateTimeException if the adjustment cannot be made
|
|
373
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
374
|
+
*/
|
|
375
|
+
with(adjuster: TemporalAdjuster): LocalDateTime;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Returns a copy of this date-time with the specified field set to a new value.
|
|
379
|
+
* <p>
|
|
380
|
+
* This returns a {@code LocalDateTime}, based on this one, with the value
|
|
381
|
+
* for the specified field changed.
|
|
382
|
+
* This can be used to change any supported field, such as the year, month or day-of-month.
|
|
383
|
+
* If it is not possible to set the value, because the field is not supported or for
|
|
384
|
+
* some other reason, an exception is thrown.
|
|
385
|
+
* <p>
|
|
386
|
+
* In some cases, changing the specified field can cause the resulting date-time to become invalid,
|
|
387
|
+
* such as changing the month from 31st January to February would make the day-of-month invalid.
|
|
388
|
+
* In cases like this, the field is responsible for resolving the date. Typically it will choose
|
|
389
|
+
* the previous valid date, which would be the last valid day of February in this example.
|
|
390
|
+
* <p>
|
|
391
|
+
* If the field is a {@link ChronoField} then the adjustment is implemented here.
|
|
392
|
+
* The {@link #isSupported(TemporalField) supported fields} will behave as per
|
|
393
|
+
* the matching method on {@link LocalDate#with(TemporalField, long) LocalDate}
|
|
394
|
+
* or {@link LocalTime#with(TemporalField, long) LocalTime}.
|
|
395
|
+
* All other {@code ChronoField} instances will throw an {@code UnsupportedTemporalTypeException}.
|
|
396
|
+
* <p>
|
|
397
|
+
* If the field is not a {@code ChronoField}, then the result of this method
|
|
398
|
+
* is obtained by invoking {@code TemporalField.adjustInto(Temporal, long)}
|
|
399
|
+
* passing {@code this} as the argument. In this case, the field determines
|
|
400
|
+
* whether and how to adjust the instant.
|
|
401
|
+
* <p>
|
|
402
|
+
* This instance is immutable and unaffected by this method call.
|
|
403
|
+
* @param field the field to set in the result, not null
|
|
404
|
+
* @param newValue the new value of the field in the result
|
|
405
|
+
* @return a {@code LocalDateTime} based on {@code this} with the specified field set, not null
|
|
406
|
+
* @throws DateTimeException if the field cannot be set
|
|
407
|
+
* @throws UnsupportedTemporalTypeException if the field is not supported
|
|
408
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
409
|
+
*/
|
|
410
|
+
with(field: TemporalField, newValue: number): LocalDateTime;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Returns a copy of this {@code LocalDateTime} with the year altered.
|
|
414
|
+
* <p>
|
|
415
|
+
* The time does not affect the calculation and will be the same in the result.
|
|
416
|
+
* If the day-of-month is invalid for the year, it will be changed to the last valid day of the month.
|
|
417
|
+
* <p>
|
|
418
|
+
* This instance is immutable and unaffected by this method call.
|
|
419
|
+
* @param year the year to set in the result, from MIN_YEAR to MAX_YEAR
|
|
420
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested year, not null
|
|
421
|
+
* @throws DateTimeException if the year value is invalid
|
|
422
|
+
*/
|
|
423
|
+
withYear(year: number): LocalDateTime;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Returns a copy of this {@code LocalDateTime} with the month-of-year altered.
|
|
427
|
+
* <p>
|
|
428
|
+
* The time does not affect the calculation and will be the same in the result.
|
|
429
|
+
* If the day-of-month is invalid for the year, it will be changed to the last valid day of the month.
|
|
430
|
+
* <p>
|
|
431
|
+
* This instance is immutable and unaffected by this method call.
|
|
432
|
+
* @param month the month-of-year to set in the result, from 1 (January) to 12 (December)
|
|
433
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested month, not null
|
|
434
|
+
* @throws DateTimeException if the month-of-year value is invalid
|
|
435
|
+
*/
|
|
436
|
+
withMonth(month: number): LocalDateTime;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Returns a copy of this {@code LocalDateTime} with the day-of-month altered.
|
|
440
|
+
* <p>
|
|
441
|
+
* If the resulting date-time is invalid, an exception is thrown.
|
|
442
|
+
* The time does not affect the calculation and will be the same in the result.
|
|
443
|
+
* <p>
|
|
444
|
+
* This instance is immutable and unaffected by this method call.
|
|
445
|
+
* @param dayOfMonth the day-of-month to set in the result, from 1 to 28-31
|
|
446
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested day, not null
|
|
447
|
+
* @throws DateTimeException if the day-of-month value is invalid,
 or if the day-of-month is invalid for the month-year
|
|
448
|
+
*/
|
|
449
|
+
withDayOfMonth(dayOfMonth: number): LocalDateTime;
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Returns a copy of this {@code LocalDateTime} with the day-of-year altered.
|
|
453
|
+
* <p>
|
|
454
|
+
* If the resulting date-time is invalid, an exception is thrown.
|
|
455
|
+
* <p>
|
|
456
|
+
* This instance is immutable and unaffected by this method call.
|
|
457
|
+
* @param dayOfYear the day-of-year to set in the result, from 1 to 365-366
|
|
458
|
+
* @return a {@code LocalDateTime} based on this date with the requested day, not null
|
|
459
|
+
* @throws DateTimeException if the day-of-year value is invalid,
 or if the day-of-year is invalid for the year
|
|
460
|
+
*/
|
|
461
|
+
withDayOfYear(dayOfYear: number): LocalDateTime;
|
|
462
|
+
|
|
463
|
+
/**
|
|
464
|
+
* Returns a copy of this {@code LocalDateTime} with the hour-of-day altered.
|
|
465
|
+
* <p>
|
|
466
|
+
* This instance is immutable and unaffected by this method call.
|
|
467
|
+
* @param hour the hour-of-day to set in the result, from 0 to 23
|
|
468
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested hour, not null
|
|
469
|
+
* @throws DateTimeException if the hour value is invalid
|
|
470
|
+
*/
|
|
471
|
+
withHour(hour: number): LocalDateTime;
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Returns a copy of this {@code LocalDateTime} with the minute-of-hour altered.
|
|
475
|
+
* <p>
|
|
476
|
+
* This instance is immutable and unaffected by this method call.
|
|
477
|
+
* @param minute the minute-of-hour to set in the result, from 0 to 59
|
|
478
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested minute, not null
|
|
479
|
+
* @throws DateTimeException if the minute value is invalid
|
|
480
|
+
*/
|
|
481
|
+
withMinute(minute: number): LocalDateTime;
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Returns a copy of this {@code LocalDateTime} with the second-of-minute altered.
|
|
485
|
+
* <p>
|
|
486
|
+
* This instance is immutable and unaffected by this method call.
|
|
487
|
+
* @param second the second-of-minute to set in the result, from 0 to 59
|
|
488
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested second, not null
|
|
489
|
+
* @throws DateTimeException if the second value is invalid
|
|
490
|
+
*/
|
|
491
|
+
withSecond(second: number): LocalDateTime;
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Returns a copy of this {@code LocalDateTime} with the nano-of-second altered.
|
|
495
|
+
* <p>
|
|
496
|
+
* This instance is immutable and unaffected by this method call.
|
|
497
|
+
* @param nanoOfSecond the nano-of-second to set in the result, from 0 to 999,999,999
|
|
498
|
+
* @return a {@code LocalDateTime} based on this date-time with the requested nanosecond, not null
|
|
499
|
+
* @throws DateTimeException if the nano value is invalid
|
|
500
|
+
*/
|
|
501
|
+
withNano(nanoOfSecond: number): LocalDateTime;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Returns a copy of this {@code LocalDateTime} with the time truncated.
|
|
505
|
+
* <p>
|
|
506
|
+
* Truncation returns a copy of the original date-time with fields
|
|
507
|
+
* smaller than the specified unit set to zero.
|
|
508
|
+
* For example, truncating with the {@link ChronoUnit#MINUTES minutes} unit
|
|
509
|
+
* will set the second-of-minute and nano-of-second field to zero.
|
|
510
|
+
* <p>
|
|
511
|
+
* The unit must have a {@linkplain TemporalUnit#getDuration() duration}
|
|
512
|
+
* that divides into the length of a standard day without remainder.
|
|
513
|
+
* This includes all supplied time units on {@link ChronoUnit} and
|
|
514
|
+
* {@link ChronoUnit#DAYS DAYS}. Other units throw an exception.
|
|
515
|
+
* <p>
|
|
516
|
+
* This instance is immutable and unaffected by this method call.
|
|
517
|
+
* @param unit the unit to truncate to, not null
|
|
518
|
+
* @return a {@code LocalDateTime} based on this date-time with the time truncated, not null
|
|
519
|
+
* @throws DateTimeException if unable to truncate
|
|
520
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
521
|
+
*/
|
|
522
|
+
truncatedTo(unit: TemporalUnit): LocalDateTime;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Returns a copy of this date-time with the specified amount added.
|
|
526
|
+
* <p>
|
|
527
|
+
* This returns a {@code LocalDateTime}, based on this one, with the specified amount added.
|
|
528
|
+
* The amount is typically {@link Period} or {@link Duration} but may be
|
|
529
|
+
* any other type implementing the {@link TemporalAmount} interface.
|
|
530
|
+
* <p>
|
|
531
|
+
* The calculation is delegated to the amount object by calling
|
|
532
|
+
* {@link TemporalAmount#addTo(Temporal)}. The amount implementation is free
|
|
533
|
+
* to implement the addition in any way it wishes, however it typically
|
|
534
|
+
* calls back to {@link #plus(long, TemporalUnit)}. Consult the documentation
|
|
535
|
+
* of the amount implementation to determine if it can be successfully added.
|
|
536
|
+
* <p>
|
|
537
|
+
* This instance is immutable and unaffected by this method call.
|
|
538
|
+
* @param amountToAdd the amount to add, not null
|
|
539
|
+
* @return a {@code LocalDateTime} based on this date-time with the addition made, not null
|
|
540
|
+
* @throws DateTimeException if the addition cannot be made
|
|
541
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
542
|
+
*/
|
|
543
|
+
plus(amountToAdd: TemporalAmount): LocalDateTime;
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* Returns a copy of this date-time with the specified amount added.
|
|
547
|
+
* <p>
|
|
548
|
+
* This returns a {@code LocalDateTime}, based on this one, with the amount
|
|
549
|
+
* in terms of the unit added. If it is not possible to add the amount, because the
|
|
550
|
+
* unit is not supported or for some other reason, an exception is thrown.
|
|
551
|
+
* <p>
|
|
552
|
+
* If the field is a {@link ChronoUnit} then the addition is implemented here.
|
|
553
|
+
* Date units are added as per {@link LocalDate#plus(long, TemporalUnit)}.
|
|
554
|
+
* Time units are added as per {@link LocalTime#plus(long, TemporalUnit)} with
|
|
555
|
+
* any overflow in days added equivalent to using {@link #plusDays(long)}.
|
|
556
|
+
* <p>
|
|
557
|
+
* If the field is not a {@code ChronoUnit}, then the result of this method
|
|
558
|
+
* is obtained by invoking {@code TemporalUnit.addTo(Temporal, long)}
|
|
559
|
+
* passing {@code this} as the argument. In this case, the unit determines
|
|
560
|
+
* whether and how to perform the addition.
|
|
561
|
+
* <p>
|
|
562
|
+
* This instance is immutable and unaffected by this method call.
|
|
563
|
+
* @param amountToAdd the amount of the unit to add to the result, may be negative
|
|
564
|
+
* @param unit the unit of the amount to add, not null
|
|
565
|
+
* @return a {@code LocalDateTime} based on this date-time with the specified amount added, not null
|
|
566
|
+
* @throws DateTimeException if the addition cannot be made
|
|
567
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
568
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
569
|
+
*/
|
|
570
|
+
plus(amountToAdd: number, unit: TemporalUnit): LocalDateTime;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of years added.
|
|
574
|
+
* <p>
|
|
575
|
+
* This method adds the specified amount to the years field in three steps:
|
|
576
|
+
* <ol>
|
|
577
|
+
* <li>Add the input years to the year field</li>
|
|
578
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
579
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
580
|
+
* </ol>
|
|
581
|
+
* <p>
|
|
582
|
+
* For example, 2008-02-29 (leap year) plus one year would result in the
|
|
583
|
+
* invalid date 2009-02-29 (standard year). Instead of returning an invalid
|
|
584
|
+
* result, the last valid day of the month, 2009-02-28, is selected instead.
|
|
585
|
+
* <p>
|
|
586
|
+
* This instance is immutable and unaffected by this method call.
|
|
587
|
+
* @param years the years to add, may be negative
|
|
588
|
+
* @return a {@code LocalDateTime} based on this date-time with the years added, not null
|
|
589
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
590
|
+
*/
|
|
591
|
+
plusYears(years: number): LocalDateTime;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of months added.
|
|
595
|
+
* <p>
|
|
596
|
+
* This method adds the specified amount to the months field in three steps:
|
|
597
|
+
* <ol>
|
|
598
|
+
* <li>Add the input months to the month-of-year field</li>
|
|
599
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
600
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
601
|
+
* </ol>
|
|
602
|
+
* <p>
|
|
603
|
+
* For example, 2007-03-31 plus one month would result in the invalid date
|
|
604
|
+
* 2007-04-31. Instead of returning an invalid result, the last valid day
|
|
605
|
+
* of the month, 2007-04-30, is selected instead.
|
|
606
|
+
* <p>
|
|
607
|
+
* This instance is immutable and unaffected by this method call.
|
|
608
|
+
* @param months the months to add, may be negative
|
|
609
|
+
* @return a {@code LocalDateTime} based on this date-time with the months added, not null
|
|
610
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
611
|
+
*/
|
|
612
|
+
plusMonths(months: number): LocalDateTime;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of weeks added.
|
|
616
|
+
* <p>
|
|
617
|
+
* This method adds the specified amount in weeks to the days field incrementing
|
|
618
|
+
* the month and year fields as necessary to ensure the result remains valid.
|
|
619
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
620
|
+
* <p>
|
|
621
|
+
* For example, 2008-12-31 plus one week would result in 2009-01-07.
|
|
622
|
+
* <p>
|
|
623
|
+
* This instance is immutable and unaffected by this method call.
|
|
624
|
+
* @param weeks the weeks to add, may be negative
|
|
625
|
+
* @return a {@code LocalDateTime} based on this date-time with the weeks added, not null
|
|
626
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
627
|
+
*/
|
|
628
|
+
plusWeeks(weeks: number): LocalDateTime;
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of days added.
|
|
632
|
+
* <p>
|
|
633
|
+
* This method adds the specified amount to the days field incrementing the
|
|
634
|
+
* month and year fields as necessary to ensure the result remains valid.
|
|
635
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
636
|
+
* <p>
|
|
637
|
+
* For example, 2008-12-31 plus one day would result in 2009-01-01.
|
|
638
|
+
* <p>
|
|
639
|
+
* This instance is immutable and unaffected by this method call.
|
|
640
|
+
* @param days the days to add, may be negative
|
|
641
|
+
* @return a {@code LocalDateTime} based on this date-time with the days added, not null
|
|
642
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
643
|
+
*/
|
|
644
|
+
plusDays(days: number): LocalDateTime;
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of hours added.
|
|
648
|
+
* <p>
|
|
649
|
+
* This instance is immutable and unaffected by this method call.
|
|
650
|
+
* @param hours the hours to add, may be negative
|
|
651
|
+
* @return a {@code LocalDateTime} based on this date-time with the hours added, not null
|
|
652
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
653
|
+
*/
|
|
654
|
+
plusHours(hours: number): LocalDateTime;
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of minutes added.
|
|
658
|
+
* <p>
|
|
659
|
+
* This instance is immutable and unaffected by this method call.
|
|
660
|
+
* @param minutes the minutes to add, may be negative
|
|
661
|
+
* @return a {@code LocalDateTime} based on this date-time with the minutes added, not null
|
|
662
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
663
|
+
*/
|
|
664
|
+
plusMinutes(minutes: number): LocalDateTime;
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of seconds added.
|
|
668
|
+
* <p>
|
|
669
|
+
* This instance is immutable and unaffected by this method call.
|
|
670
|
+
* @param seconds the seconds to add, may be negative
|
|
671
|
+
* @return a {@code LocalDateTime} based on this date-time with the seconds added, not null
|
|
672
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
673
|
+
*/
|
|
674
|
+
plusSeconds(seconds: number): LocalDateTime;
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of nanoseconds added.
|
|
678
|
+
* <p>
|
|
679
|
+
* This instance is immutable and unaffected by this method call.
|
|
680
|
+
* @param nanos the nanos to add, may be negative
|
|
681
|
+
* @return a {@code LocalDateTime} based on this date-time with the nanoseconds added, not null
|
|
682
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
683
|
+
*/
|
|
684
|
+
plusNanos(nanos: number): LocalDateTime;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Returns a copy of this date-time with the specified amount subtracted.
|
|
688
|
+
* <p>
|
|
689
|
+
* This returns a {@code LocalDateTime}, based on this one, with the specified amount subtracted.
|
|
690
|
+
* The amount is typically {@link Period} or {@link Duration} but may be
|
|
691
|
+
* any other type implementing the {@link TemporalAmount} interface.
|
|
692
|
+
* <p>
|
|
693
|
+
* The calculation is delegated to the amount object by calling
|
|
694
|
+
* {@link TemporalAmount#subtractFrom(Temporal)}. The amount implementation is free
|
|
695
|
+
* to implement the subtraction in any way it wishes, however it typically
|
|
696
|
+
* calls back to {@link #minus(long, TemporalUnit)}. Consult the documentation
|
|
697
|
+
* of the amount implementation to determine if it can be successfully subtracted.
|
|
698
|
+
* <p>
|
|
699
|
+
* This instance is immutable and unaffected by this method call.
|
|
700
|
+
* @param amountToSubtract the amount to subtract, not null
|
|
701
|
+
* @return a {@code LocalDateTime} based on this date-time with the subtraction made, not null
|
|
702
|
+
* @throws DateTimeException if the subtraction cannot be made
|
|
703
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
704
|
+
*/
|
|
705
|
+
minus(amountToSubtract: TemporalAmount): LocalDateTime;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Returns a copy of this date-time with the specified amount subtracted.
|
|
709
|
+
* <p>
|
|
710
|
+
* This returns a {@code LocalDateTime}, based on this one, with the amount
|
|
711
|
+
* in terms of the unit subtracted. If it is not possible to subtract the amount,
|
|
712
|
+
* because the unit is not supported or for some other reason, an exception is thrown.
|
|
713
|
+
* <p>
|
|
714
|
+
* This method is equivalent to {@link #plus(long, TemporalUnit)} with the amount negated.
|
|
715
|
+
* See that method for a full description of how addition, and thus subtraction, works.
|
|
716
|
+
* <p>
|
|
717
|
+
* This instance is immutable and unaffected by this method call.
|
|
718
|
+
* @param amountToSubtract the amount of the unit to subtract from the result, may be negative
|
|
719
|
+
* @param unit the unit of the amount to subtract, not null
|
|
720
|
+
* @return a {@code LocalDateTime} based on this date-time with the specified amount subtracted, not null
|
|
721
|
+
* @throws DateTimeException if the subtraction cannot be made
|
|
722
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
723
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
724
|
+
*/
|
|
725
|
+
minus(amountToSubtract: number, unit: TemporalUnit): LocalDateTime;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of years subtracted.
|
|
729
|
+
* <p>
|
|
730
|
+
* This method subtracts the specified amount from the years field in three steps:
|
|
731
|
+
* <ol>
|
|
732
|
+
* <li>Subtract the input years from the year field</li>
|
|
733
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
734
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
735
|
+
* </ol>
|
|
736
|
+
* <p>
|
|
737
|
+
* For example, 2008-02-29 (leap year) minus one year would result in the
|
|
738
|
+
* invalid date 2009-02-29 (standard year). Instead of returning an invalid
|
|
739
|
+
* result, the last valid day of the month, 2009-02-28, is selected instead.
|
|
740
|
+
* <p>
|
|
741
|
+
* This instance is immutable and unaffected by this method call.
|
|
742
|
+
* @param years the years to subtract, may be negative
|
|
743
|
+
* @return a {@code LocalDateTime} based on this date-time with the years subtracted, not null
|
|
744
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
745
|
+
*/
|
|
746
|
+
minusYears(years: number): LocalDateTime;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of months subtracted.
|
|
750
|
+
* <p>
|
|
751
|
+
* This method subtracts the specified amount from the months field in three steps:
|
|
752
|
+
* <ol>
|
|
753
|
+
* <li>Subtract the input months from the month-of-year field</li>
|
|
754
|
+
* <li>Check if the resulting date would be invalid</li>
|
|
755
|
+
* <li>Adjust the day-of-month to the last valid day if necessary</li>
|
|
756
|
+
* </ol>
|
|
757
|
+
* <p>
|
|
758
|
+
* For example, 2007-03-31 minus one month would result in the invalid date
|
|
759
|
+
* 2007-04-31. Instead of returning an invalid result, the last valid day
|
|
760
|
+
* of the month, 2007-04-30, is selected instead.
|
|
761
|
+
* <p>
|
|
762
|
+
* This instance is immutable and unaffected by this method call.
|
|
763
|
+
* @param months the months to subtract, may be negative
|
|
764
|
+
* @return a {@code LocalDateTime} based on this date-time with the months subtracted, not null
|
|
765
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
766
|
+
*/
|
|
767
|
+
minusMonths(months: number): LocalDateTime;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of weeks subtracted.
|
|
771
|
+
* <p>
|
|
772
|
+
* This method subtracts the specified amount in weeks from the days field decrementing
|
|
773
|
+
* the month and year fields as necessary to ensure the result remains valid.
|
|
774
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
775
|
+
* <p>
|
|
776
|
+
* For example, 2009-01-07 minus one week would result in 2008-12-31.
|
|
777
|
+
* <p>
|
|
778
|
+
* This instance is immutable and unaffected by this method call.
|
|
779
|
+
* @param weeks the weeks to subtract, may be negative
|
|
780
|
+
* @return a {@code LocalDateTime} based on this date-time with the weeks subtracted, not null
|
|
781
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
782
|
+
*/
|
|
783
|
+
minusWeeks(weeks: number): LocalDateTime;
|
|
784
|
+
|
|
785
|
+
/**
|
|
786
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of days subtracted.
|
|
787
|
+
* <p>
|
|
788
|
+
* This method subtracts the specified amount from the days field decrementing the
|
|
789
|
+
* month and year fields as necessary to ensure the result remains valid.
|
|
790
|
+
* The result is only invalid if the maximum/minimum year is exceeded.
|
|
791
|
+
* <p>
|
|
792
|
+
* For example, 2009-01-01 minus one day would result in 2008-12-31.
|
|
793
|
+
* <p>
|
|
794
|
+
* This instance is immutable and unaffected by this method call.
|
|
795
|
+
* @param days the days to subtract, may be negative
|
|
796
|
+
* @return a {@code LocalDateTime} based on this date-time with the days subtracted, not null
|
|
797
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
798
|
+
*/
|
|
799
|
+
minusDays(days: number): LocalDateTime;
|
|
800
|
+
|
|
801
|
+
/**
|
|
802
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of hours subtracted.
|
|
803
|
+
* <p>
|
|
804
|
+
* This instance is immutable and unaffected by this method call.
|
|
805
|
+
* @param hours the hours to subtract, may be negative
|
|
806
|
+
* @return a {@code LocalDateTime} based on this date-time with the hours subtracted, not null
|
|
807
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
808
|
+
*/
|
|
809
|
+
minusHours(hours: number): LocalDateTime;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of minutes subtracted.
|
|
813
|
+
* <p>
|
|
814
|
+
* This instance is immutable and unaffected by this method call.
|
|
815
|
+
* @param minutes the minutes to subtract, may be negative
|
|
816
|
+
* @return a {@code LocalDateTime} based on this date-time with the minutes subtracted, not null
|
|
817
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
818
|
+
*/
|
|
819
|
+
minusMinutes(minutes: number): LocalDateTime;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of seconds subtracted.
|
|
823
|
+
* <p>
|
|
824
|
+
* This instance is immutable and unaffected by this method call.
|
|
825
|
+
* @param seconds the seconds to subtract, may be negative
|
|
826
|
+
* @return a {@code LocalDateTime} based on this date-time with the seconds subtracted, not null
|
|
827
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
828
|
+
*/
|
|
829
|
+
minusSeconds(seconds: number): LocalDateTime;
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Returns a copy of this {@code LocalDateTime} with the specified number of nanoseconds subtracted.
|
|
833
|
+
* <p>
|
|
834
|
+
* This instance is immutable and unaffected by this method call.
|
|
835
|
+
* @param nanos the nanos to subtract, may be negative
|
|
836
|
+
* @return a {@code LocalDateTime} based on this date-time with the nanoseconds subtracted, not null
|
|
837
|
+
* @throws DateTimeException if the result exceeds the supported date range
|
|
838
|
+
*/
|
|
839
|
+
minusNanos(nanos: number): LocalDateTime;
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Queries this date-time using the specified query.
|
|
843
|
+
* <p>
|
|
844
|
+
* This queries this date-time using the specified query strategy object.
|
|
845
|
+
* The {@code TemporalQuery} object defines the logic to be used to
|
|
846
|
+
* obtain the result. Read the documentation of the query to understand
|
|
847
|
+
* what the result of this method will be.
|
|
848
|
+
* <p>
|
|
849
|
+
* The result of this method is obtained by invoking the
|
|
850
|
+
* {@link TemporalQuery#queryFrom(TemporalAccessor)} method on the
|
|
851
|
+
* specified query passing {@code this} as the argument.
|
|
852
|
+
* @param <R> the type of the result
|
|
853
|
+
* @param query the query to invoke, not null
|
|
854
|
+
* @return the query result, null may be returned (defined by the query)
|
|
855
|
+
* @throws DateTimeException if unable to query (defined by the query)
|
|
856
|
+
* @throws ArithmeticException if numeric overflow occurs (defined by the query)
|
|
857
|
+
*/
|
|
858
|
+
query(query: TemporalQuery): unknown;
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Adjusts the specified temporal object to have the same date and time as this object.
|
|
862
|
+
* <p>
|
|
863
|
+
* This returns a temporal object of the same observable type as the input
|
|
864
|
+
* with the date and time changed to be the same as this.
|
|
865
|
+
* <p>
|
|
866
|
+
* The adjustment is equivalent to using {@link Temporal#with(TemporalField, long)}
|
|
867
|
+
* twice, passing {@link ChronoField#EPOCH_DAY} and
|
|
868
|
+
* {@link ChronoField#NANO_OF_DAY} as the fields.
|
|
869
|
+
* <p>
|
|
870
|
+
* In most cases, it is clearer to reverse the calling pattern by using
|
|
871
|
+
* {@link Temporal#with(TemporalAdjuster)}:
|
|
872
|
+
* <pre>
|
|
873
|
+
* // these two lines are equivalent, but the second approach is recommended
|
|
874
|
+
* temporal = thisLocalDateTime.adjustInto(temporal);
|
|
875
|
+
* temporal = temporal.with(thisLocalDateTime);
|
|
876
|
+
* </pre>
|
|
877
|
+
* <p>
|
|
878
|
+
* This instance is immutable and unaffected by this method call.
|
|
879
|
+
* @param temporal the target object to be adjusted, not null
|
|
880
|
+
* @return the adjusted object, not null
|
|
881
|
+
* @throws DateTimeException if unable to make the adjustment
|
|
882
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
883
|
+
*/
|
|
884
|
+
adjustInto(temporal: Temporal): Temporal;
|
|
885
|
+
|
|
886
|
+
/**
|
|
887
|
+
* Calculates the amount of time until another date-time in terms of the specified unit.
|
|
888
|
+
* <p>
|
|
889
|
+
* This calculates the amount of time between two {@code LocalDateTime}
|
|
890
|
+
* objects in terms of a single {@code TemporalUnit}.
|
|
891
|
+
* The start and end points are {@code this} and the specified date-time.
|
|
892
|
+
* The result will be negative if the end is before the start.
|
|
893
|
+
* The {@code Temporal} passed to this method is converted to a
|
|
894
|
+
* {@code LocalDateTime} using {@link #from(TemporalAccessor)}.
|
|
895
|
+
* For example, the amount in days between two date-times can be calculated
|
|
896
|
+
* using {@code startDateTime.until(endDateTime, DAYS)}.
|
|
897
|
+
* <p>
|
|
898
|
+
* The calculation returns a whole number, representing the number of
|
|
899
|
+
* complete units between the two date-times.
|
|
900
|
+
* For example, the amount in months between 2012-06-15T00:00 and 2012-08-14T23:59
|
|
901
|
+
* will only be one month as it is one minute short of two months.
|
|
902
|
+
* <p>
|
|
903
|
+
* There are two equivalent ways of using this method.
|
|
904
|
+
* The first is to invoke this method.
|
|
905
|
+
* The second is to use {@link TemporalUnit#between(Temporal, Temporal)}:
|
|
906
|
+
* <pre>
|
|
907
|
+
* // these two lines are equivalent
|
|
908
|
+
* amount = start.until(end, MONTHS);
|
|
909
|
+
* amount = MONTHS.between(start, end);
|
|
910
|
+
* </pre>
|
|
911
|
+
* The choice should be made based on which makes the code more readable.
|
|
912
|
+
* <p>
|
|
913
|
+
* The calculation is implemented in this method for {@link ChronoUnit}.
|
|
914
|
+
* The units {@code NANOS}, {@code MICROS}, {@code MILLIS}, {@code SECONDS},
|
|
915
|
+
* {@code MINUTES}, {@code HOURS} and {@code HALF_DAYS}, {@code DAYS},
|
|
916
|
+
* {@code WEEKS}, {@code MONTHS}, {@code YEARS}, {@code DECADES},
|
|
917
|
+
* {@code CENTURIES}, {@code MILLENNIA} and {@code ERAS} are supported.
|
|
918
|
+
* Other {@code ChronoUnit} values will throw an exception.
|
|
919
|
+
* <p>
|
|
920
|
+
* If the unit is not a {@code ChronoUnit}, then the result of this method
|
|
921
|
+
* is obtained by invoking {@code TemporalUnit.between(Temporal, Temporal)}
|
|
922
|
+
* passing {@code this} as the first argument and the converted input temporal
|
|
923
|
+
* as the second argument.
|
|
924
|
+
* <p>
|
|
925
|
+
* This instance is immutable and unaffected by this method call.
|
|
926
|
+
* @param endExclusive the end date, exclusive, which is converted to a {@code LocalDateTime}, not null
|
|
927
|
+
* @param unit the unit to measure the amount in, not null
|
|
928
|
+
* @return the amount of time between this date-time and the end date-time
|
|
929
|
+
* @throws DateTimeException if the amount cannot be calculated, or the end
 temporal cannot be converted to a {@code LocalDateTime}
|
|
930
|
+
* @throws UnsupportedTemporalTypeException if the unit is not supported
|
|
931
|
+
* @throws ArithmeticException if numeric overflow occurs
|
|
932
|
+
*/
|
|
933
|
+
until(endExclusive: Temporal, unit: TemporalUnit): number;
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* Formats this date-time using the specified formatter.
|
|
937
|
+
* <p>
|
|
938
|
+
* This date-time will be passed to the formatter to produce a string.
|
|
939
|
+
* @param formatter the formatter to use, not null
|
|
940
|
+
* @return the formatted date-time string, not null
|
|
941
|
+
* @throws DateTimeException if an error occurs during printing
|
|
942
|
+
*/
|
|
943
|
+
format(formatter: DateTimeFormatter): string;
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Combines this date-time with an offset to create an {@code OffsetDateTime}.
|
|
947
|
+
* <p>
|
|
948
|
+
* This returns an {@code OffsetDateTime} formed from this date-time at the specified offset.
|
|
949
|
+
* All possible combinations of date-time and offset are valid.
|
|
950
|
+
* @param offset the offset to combine with, not null
|
|
951
|
+
* @return the offset date-time formed from this date-time and the specified offset, not null
|
|
952
|
+
*/
|
|
953
|
+
atOffset(offset: ZoneOffset): OffsetDateTime;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* Combines this date-time with a time-zone to create a {@code ZonedDateTime}.
|
|
957
|
+
* <p>
|
|
958
|
+
* This returns a {@code ZonedDateTime} formed from this date-time at the
|
|
959
|
+
* specified time-zone. The result will match this date-time as closely as possible.
|
|
960
|
+
* Time-zone rules, such as daylight savings, mean that not every local date-time
|
|
961
|
+
* is valid for the specified zone, thus the local date-time may be adjusted.
|
|
962
|
+
* <p>
|
|
963
|
+
* The local date-time is resolved to a single instant on the time-line.
|
|
964
|
+
* This is achieved by finding a valid offset from UTC/Greenwich for the local
|
|
965
|
+
* date-time as defined by the {@link ZoneRules rules} of the zone ID.
|
|
966
|
+
* <p>
|
|
967
|
+
* In most cases, there is only one valid offset for a local date-time.
|
|
968
|
+
* In the case of an overlap, where clocks are set back, there are two valid offsets.
|
|
969
|
+
* This method uses the earlier offset typically corresponding to "summer".
|
|
970
|
+
* <p>
|
|
971
|
+
* In the case of a gap, where clocks jump forward, there is no valid offset.
|
|
972
|
+
* Instead, the local date-time is adjusted to be later by the length of the gap.
|
|
973
|
+
* For a typical one hour daylight savings change, the local date-time will be
|
|
974
|
+
* moved one hour later into the offset typically corresponding to "summer".
|
|
975
|
+
* <p>
|
|
976
|
+
* To obtain the later offset during an overlap, call
|
|
977
|
+
* {@link ZonedDateTime#withLaterOffsetAtOverlap()} on the result of this method.
|
|
978
|
+
* To throw an exception when there is a gap or overlap, use
|
|
979
|
+
* {@link ZonedDateTime#ofStrict(LocalDateTime, ZoneOffset, ZoneId)}.
|
|
980
|
+
* @param zone the time-zone to use, not null
|
|
981
|
+
* @return the zoned date-time formed from this date-time, not null
|
|
982
|
+
*/
|
|
983
|
+
atZone(zone: ZoneId): ZonedDateTime;
|
|
984
|
+
|
|
985
|
+
/**
|
|
986
|
+
* Compares this date-time to another date-time.
|
|
987
|
+
* <p>
|
|
988
|
+
* The comparison is primarily based on the date-time, from earliest to latest.
|
|
989
|
+
* It is "consistent with equals", as defined by {@link Comparable}.
|
|
990
|
+
* <p>
|
|
991
|
+
* If all the date-times being compared are instances of {@code LocalDateTime},
|
|
992
|
+
* then the comparison will be entirely based on the date-time.
|
|
993
|
+
* If some dates being compared are in different chronologies, then the
|
|
994
|
+
* chronology is also considered, see {@link ChronoLocalDateTime#compareTo}.
|
|
995
|
+
* @param other the other date-time to compare to, not null
|
|
996
|
+
* @return the comparator value, negative if less, positive if greater
|
|
997
|
+
*/
|
|
998
|
+
compareTo(other: ChronoLocalDateTime): number;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* Checks if this date-time is after the specified date-time.
|
|
1002
|
+
* <p>
|
|
1003
|
+
* This checks to see if this date-time represents a point on the
|
|
1004
|
+
* local time-line after the other date-time.
|
|
1005
|
+
* <pre>
|
|
1006
|
+
* LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
|
|
1007
|
+
* LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
|
|
1008
|
+
* a.isAfter(b) == false
|
|
1009
|
+
* a.isAfter(a) == false
|
|
1010
|
+
* b.isAfter(a) == true
|
|
1011
|
+
* </pre>
|
|
1012
|
+
* <p>
|
|
1013
|
+
* This method only considers the position of the two date-times on the local time-line.
|
|
1014
|
+
* It does not take into account the chronology, or calendar system.
|
|
1015
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)},
|
|
1016
|
+
* but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}.
|
|
1017
|
+
* @param other the other date-time to compare to, not null
|
|
1018
|
+
* @return true if this date-time is after the specified date-time
|
|
1019
|
+
*/
|
|
1020
|
+
isAfter(other: ChronoLocalDateTime): boolean;
|
|
1021
|
+
|
|
1022
|
+
/**
|
|
1023
|
+
* Checks if this date-time is before the specified date-time.
|
|
1024
|
+
* <p>
|
|
1025
|
+
* This checks to see if this date-time represents a point on the
|
|
1026
|
+
* local time-line before the other date-time.
|
|
1027
|
+
* <pre>
|
|
1028
|
+
* LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
|
|
1029
|
+
* LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
|
|
1030
|
+
* a.isBefore(b) == true
|
|
1031
|
+
* a.isBefore(a) == false
|
|
1032
|
+
* b.isBefore(a) == false
|
|
1033
|
+
* </pre>
|
|
1034
|
+
* <p>
|
|
1035
|
+
* This method only considers the position of the two date-times on the local time-line.
|
|
1036
|
+
* It does not take into account the chronology, or calendar system.
|
|
1037
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)},
|
|
1038
|
+
* but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}.
|
|
1039
|
+
* @param other the other date-time to compare to, not null
|
|
1040
|
+
* @return true if this date-time is before the specified date-time
|
|
1041
|
+
*/
|
|
1042
|
+
isBefore(other: ChronoLocalDateTime): boolean;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
* Checks if this date-time is equal to the specified date-time.
|
|
1046
|
+
* <p>
|
|
1047
|
+
* This checks to see if this date-time represents the same point on the
|
|
1048
|
+
* local time-line as the other date-time.
|
|
1049
|
+
* <pre>
|
|
1050
|
+
* LocalDate a = LocalDateTime.of(2012, 6, 30, 12, 00);
|
|
1051
|
+
* LocalDate b = LocalDateTime.of(2012, 7, 1, 12, 00);
|
|
1052
|
+
* a.isEqual(b) == false
|
|
1053
|
+
* a.isEqual(a) == true
|
|
1054
|
+
* b.isEqual(a) == false
|
|
1055
|
+
* </pre>
|
|
1056
|
+
* <p>
|
|
1057
|
+
* This method only considers the position of the two date-times on the local time-line.
|
|
1058
|
+
* It does not take into account the chronology, or calendar system.
|
|
1059
|
+
* This is different from the comparison in {@link #compareTo(ChronoLocalDateTime)},
|
|
1060
|
+
* but is the same approach as {@link ChronoLocalDateTime#timeLineOrder()}.
|
|
1061
|
+
* @param other the other date-time to compare to, not null
|
|
1062
|
+
* @return true if this date-time is equal to the specified date-time
|
|
1063
|
+
*/
|
|
1064
|
+
isEqual(other: ChronoLocalDateTime): boolean;
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* Checks if this date-time is equal to another date-time.
|
|
1068
|
+
* <p>
|
|
1069
|
+
* Compares this {@code LocalDateTime} with another ensuring that the date-time is the same.
|
|
1070
|
+
* Only objects of type {@code LocalDateTime} are compared, other types return false.
|
|
1071
|
+
* @param obj the object to check, null returns false
|
|
1072
|
+
* @return true if this is equal to the other date-time
|
|
1073
|
+
*/
|
|
1074
|
+
equals(obj: unknown): boolean;
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* A hash code for this date-time.
|
|
1078
|
+
* @return a suitable hash code
|
|
1079
|
+
*/
|
|
1080
|
+
hashCode(): number;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30}.
|
|
1084
|
+
* <p>
|
|
1085
|
+
* The output will be one of the following ISO-8601 formats:
|
|
1086
|
+
* <ul>
|
|
1087
|
+
* <li>{@code uuuu-MM-dd'T'HH:mm}</li>
|
|
1088
|
+
* <li>{@code uuuu-MM-dd'T'HH:mm:ss}</li>
|
|
1089
|
+
* <li>{@code uuuu-MM-dd'T'HH:mm:ss.SSS}</li>
|
|
1090
|
+
* <li>{@code uuuu-MM-dd'T'HH:mm:ss.SSSSSS}</li>
|
|
1091
|
+
* <li>{@code uuuu-MM-dd'T'HH:mm:ss.SSSSSSSSS}</li>
|
|
1092
|
+
* </ul>
|
|
1093
|
+
* The format used will be the shortest that outputs the full value of
|
|
1094
|
+
* the time where the omitted parts are implied to be zero.
|
|
1095
|
+
* @return a string representation of this date-time, not null
|
|
1096
|
+
*/
|
|
1097
|
+
toString(): string;
|
|
1098
|
+
|
|
1099
|
+
/**
|
|
1100
|
+
* The minimum supported {@code LocalDateTime}, '-999999999-01-01T00:00:00'.
|
|
1101
|
+
* This is the local date-time of midnight at the start of the minimum date.
|
|
1102
|
+
* This combines {@link LocalDate#MIN} and {@link LocalTime#MIN}.
|
|
1103
|
+
* This could be used by an application as a "far past" date-time.
|
|
1104
|
+
|
|
1105
|
+
*/
|
|
1106
|
+
MIN: LocalDateTime;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* The maximum supported {@code LocalDateTime}, '+999999999-12-31T23:59:59.999999999'.
|
|
1110
|
+
* This is the local date-time just before midnight at the end of the maximum date.
|
|
1111
|
+
* This combines {@link LocalDate#MAX} and {@link LocalTime#MAX}.
|
|
1112
|
+
* This could be used by an application as a "far future" date-time.
|
|
1113
|
+
|
|
1114
|
+
*/
|
|
1115
|
+
MAX: LocalDateTime;
|
|
1116
|
+
};
|