New API since JDK 11
Contents
Show API added in:
-
New ModulesModuleAdded inDescription16Defines the Java Packaging tool, jpackage.14Defines JDK-specific file mapping modes.
-
New PackagesPackageAdded inDescription12Classes and interfaces to represent nominal descriptors for run-time entities such as classes or method handles, and classfile entities such as constant pool entries or
invokedynamiccall sites.14Thejava.lang.runtimepackage provides low-level runtime support for the Java language.17This package contains classes and interfaces that support a generic API for random number generation.
-
New InterfacesInterfaceAdded inDescription18A view of the immutable request state of an HTTP exchange.18A tree node for an
@snippetinline tag.12A tree node for an@systemPropertyinline tag.16A binding pattern tree17A marker interface forTrees that may be used asCaseTreelabels.19A case label element that refers to a constant expression19A deconstruction pattern tree.17A case label that marksdefaultincase null, default.17A tree node for a parenthesized pattern.19A case label element that refers to an expression16A tree node used as the base class for the different kinds of patterns.12A tree node for aswitchexpression.13A tree node for ayieldstatement.13A provider for parameter names when the parameter names are not determined from a reliable source, like a classfile.12A nominal descriptor for aClassconstant.12Represents a type which is constable.12A nominal descriptor for a loadable constant value, as defined in JVMS 4.4.12A nominal descriptor for a directMethodHandle.12A nominal descriptor for aMethodHandleconstant.12A nominal descriptor for a MethodType constant.19An object that may be projected down to a memory addressPREVIEW.19A linker provides access to foreign functions from Java code, and access to Java code from foreign functions.19A memory address models a reference into a memory location.19A memory layout can be used to describe the contents of a memory segment.19An element in a layout path.19A memory segment models a contiguous region of memory.19A memory session manages the lifecycle of one or more resources.19A variable argument list, similar in functionality to a Cva_list.19A builder used to construct a variable argument listPREVIEW.12An entity that has a type descriptor.12An entity that has a field type descriptor.12An entity that has a method type descriptor Method descriptors conforming to JVMS 4.3.3 can be described nominally viaMethodType::describeConstable; otherwise they cannot be described nominally.19A builder forThreadandThreadFactoryobjects.19A builder for creating a platformThreadorThreadFactorythat creates platform threads.19A builder for creating a virtualThreadorThreadFactorythat creates virtual threads.18This interface defines operations for looking up host names and IP addresses.18AConfigurationobject is supplied to theInetAddressResolverProvider.get(Configuration)method when setting the system-wide resolver.15An interface for an elliptic curve public/private key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).15An interface for an elliptic curve private key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).15An interface for an elliptic curve public key as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).17Provides access to the current instant.17TheRandomGeneratorinterface is designed to provide a common protocol for objects that generate random or (more typically) pseudorandom sequences of numbers (or Boolean values).16Represents an operation that accepts adouble-valued argument and a DoubleConsumer, and returns no result.16Represents an operation that accepts anint-valued argument and an IntConsumer, and returns no result.16Represents an operation that accepts along-valued argument and a LongConsumer, and returns no result.16Represents a record component.14Represents a stream of events.
-
New ClassesClassAdded inDescription18Implementations of
HttpHandlerthat implement various useful handlers, such as a static response handler, or a conditional handler that complements one handler with another.18A simple HTTP file server and its components (intended for testing, development and debugging purposes only).12Predefined values of nominal descriptor for common constants, including descriptors for primitive class types and other common platform types, and descriptors for method handles for standard bootstrap methods.12A nominal descriptor for aninvokedynamiccall site.12A nominal descriptor for a dynamic constant (one described in the constant pool withConstant_Dynamic_info.)12A nominal descriptor for anenumconstant.19A function descriptor is made up of zero or more argument layouts and zero or one return layout.19A compound layout that aggregates multiple member layouts.19A compound layout that denotes a repetition of a given element layout.19A value layout.19A value layout whose carrier isMemoryAddress.class.19A value layout whose carrier isboolean.class.19A value layout whose carrier isbyte.class.19A value layout whose carrier ischar.class.19A value layout whose carrier isdouble.class.19A value layout whose carrier isfloat.class.19A value layout whose carrier isint.class.19A value layout whose carrier islong.class.19A value layout whose carrier isshort.class.12A nominal descriptor for aVarHandleconstant.16This is the common base class of all Java language record classes.16ARecordComponentprovides information about, and dynamic access to, a component of a record class.16Bootstrap methods for state-driven implementations of core methods, includingObject.equals(Object),Object.hashCode(), andObject.toString().17Bootstrap methods for linkinginvokedynamiccall sites that implement the selection functionality of theswitchstatement.18ALookupPolicyobject describes characteristics that can be applied to a lookup operation.18Service-provider class for InetAddress resolvers.16A Unix domain socket address.15A class used to specify EdDSA signature and verification parameters.15An elliptic curve point used to specify keys as defined by RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA).15A class representing elliptic curve private keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.15A class representing elliptic curve public keys as defined in RFC 8032: Edwards-Curve Digital Signature Algorithm (EdDSA), including the curve and other algorithm parameters.12CompactNumberFormatis a concrete subclass ofNumberFormatthat formats a decimal number in its compact form.17HexFormatconverts between bytes and chars and hex-encoded strings which may include additional formatting markup such as prefixes, suffixes, and delimiters.17This is a factory class for generating multiple random number generators of a specific algorithm.14A skeletal visitor for annotation values with default behavior appropriate for source versionRELEASE_14.16A skeletal visitor of program elements with default behavior appropriate for theRELEASE_14source version.14A skeletal visitor of types with default behavior appropriate for theRELEASE_14source version.16A visitor of program elements based on their kind with default behavior appropriate for theRELEASE_14source version.16A scanning visitor of program elements with default behavior appropriate for theRELEASE_14source version.14A simple visitor for annotation values with default behavior appropriate for source versionRELEASE_14.16A simple visitor of program elements with default behavior appropriate for theRELEASE_14source version.14A simple visitor of types with default behavior appropriate for source versionRELEASE_14.14A visitor of types based on their kind with default behavior appropriate for source versionRELEASE_14.12Service-provider class for DNS lookups when performing LDAP operations.12The result of a DNS lookup for an LDAP URL.17Parameters for the XML Signature RSASSA-PSS Algorithm.19A basic API for structured concurrency.19AStructuredTaskScopethat captures the exception of the first subtask to complete abnormally.19AStructuredTaskScopethat captures the result of the first subtask to complete successfully.16Event that contains information about event types and configurations.14A recording stream produces events from the current JVM (Java Virtual Machine).16An implementation of anEventStreamthat can serialize events over the network using anMBeanServerConnection.14JDK-specific map modes.
-
New Enum ClassesEnum ClassAdded inDescription19Thread dump format.18Describes the log message output level produced by the server when processing exchanges.12The syntactic form of this case: STATEMENT:
case <expression>: <statements>RULE:case <expression> -> <expression>/<statement>12Kinds of method handles that can be described with DirectMethodHandleDesc.15The set of class options that specify whether a hidden class created byLookup::defineHiddenClassmethod is dynamically added as a new member to the nest of a lookup class and/or whether a hidden class has a strong relationship with the class loader marked as its defining loader.12A number format style.19Represents the computation state.19A span attribute which can be used to derive a coloring.
-
New Exception ClassesException ClassAdded inDescription19Thrown to indicate an operation could not be performed on a frame.19Thrown to indicate an unexpected failure in pattern matching.19Thrown to indicate that a method has been called on the wrong thread.19Thrown when a structure violation is detected.
-
New Record ClassesRecord ClassAdded inDescription19Assigns attributes usable for coloring to spans inside a snippet.16Represents the credentials of a peer connected to a Unix domain socket.
-
New Annotation InterfacesAnnotation InterfaceAdded inDescription14Indicates that an annotated field or method is part of the serialization mechanism defined by the Java Object Serialization Specification.
-
New FieldsFieldAdded inDescription19Constant for the "Arabic Extended-B" Unicode character block.12Constant for the "Chess Symbols" Unicode character block.15Constant for the "Chorasmian" Unicode character block.15Constant for the "CJK Unified Ideographs Extension G" Unicode character block.19Constant for the "Cypro-Minoan" Unicode character block.15Constant for the "Dives Akuru" Unicode character block.12Constant for the "Dogra" Unicode character block.13Constant for the "Egyptian Hieroglyph Format Controls" Unicode character block.13Constant for the "Elymaic" Unicode character block.19Constant for the "Ethiopic Extended-B" Unicode character block.12Constant for the "Georgian Extended" Unicode character block.12Constant for the "Gunjala Gondi" Unicode character block.12Constant for the "Hanifi Rohingya" Unicode character block.12Constant for the "Indic Siyaq Numbers" Unicode character block.19Constant for the "Kana Extended-B" Unicode character block.15Constant for the "Khitan Small Script" Unicode character block.19Constant for the "Latin Extended-F" Unicode character block.19Constant for the "Latin Extended-G" Unicode character block.15Constant for the "Lisu Supplement" Unicode character block.12Constant for the "Makasar" Unicode character block.12Constant for the "Mayan Numerals" Unicode character block.12Constant for the "Medefaidrin" Unicode character block.13Constant for the "Nandinagari" Unicode character block.13Constant for the "Nyiakeng Puachue Hmong" Unicode character block.12Constant for the "Old Sogdian" Unicode character block.19Constant for the "Old Uyghur" Unicode character block.13Constant for the "Ottoman Siyaq Numbers" Unicode character block.13Constant for the "Small Kana Extension" Unicode character block.12Constant for the "Sogdian" Unicode character block.13Constant for the "Symbols and Pictographs Extended-A" Unicode character block.15Constant for the "Symbols for Legacy Computing" Unicode character block.13Constant for the "Tamil Supplement" Unicode character block.19Constant for the "Tangsa" Unicode character block.15Constant for the "Tangut Supplement" Unicode character block.19Constant for the "Toto" Unicode character block.19Constant for the "Unified Canadian Aboriginal Syllabics Extended-A" Unicode character block.19Constant for the "Vithkuqi" Unicode character block.13Constant for the "Wancho" Unicode character block.15Constant for the "Yezidi" Unicode character block.19Constant for the "Znamenny Musical Notation" Unicode character block.15
MethodHandleDescrepresentingConstantBootstraps.explicitCast(Lookup, String, Class, Object)ConstantBootstraps.explicitCast}15MethodHandleDescrepresentingConstantBootstraps.getStaticFinal15Nominal descriptor representing the constant Boolean.FALSE15Nominal descriptor representing the constant Boolean.TRUE19The number of bits in the significand of adoublevalue.19The number of bits in the significand of afloatvalue.16A single-bit mask representingoriginalaccess which may contribute to the result oflookupModes.19Thedoublevalue that is closer than any other to tau (τ), the ratio of the circumference of a circle to its radius.19Thedoublevalue that is closer than any other to tau (τ), the ratio of the circumference of a circle to its radius.19The value 2, with a scale of 0.16TheMGF1ParameterSpecuses a "SHA3-224" message digest.16TheMGF1ParameterSpecuses a "SHA3-256" message digest.16TheMGF1ParameterSpecuses a "SHA3-384" message digest.16TheMGF1ParameterSpecuses a "SHA3-512" message digest.15The Ed25519 parameters15The Ed448 parameters12Constant identifying the prefix field.12Constant identifying the suffix field.13The singleton instance for the 'Reiwa' era (2019-05-01 - ) which has the value 3.13Enterprise name (alias)13The Canonical XML 1.1 (without comments) canonicalization method algorithm URI.13The Canonical XML 1.1 with comments canonicalization method algorithm URI.17The RSASSA-PSS signature method algorithm URI.19ProducebitCount(a)19Producecompress(a,n).19Produceexpand(a,n).19ProducenumberOfLeadingZeros(a)19Producereverse(a)19ProducereverseBytes(a)19ProducenumberOfTrailingZeros(a)15Identifies the receive queue that the last incoming packet for the socket was received on.16Unix Domain peer credentials.
-
New MethodsMethodAdded inDescription19Restricts the events generated by this request to only platform threads.19Restricts the events generated by this request to only platform threads.19Returns
trueif the thread is a virtual thread.com.sun.management.HotSpotDiagnosticMXBean.dumpThreads(String, HotSpotDiagnosticMXBean.ThreadDumpFormat) PREVIEW19Generate a thread dump to the given file in the given format.14Returns the "recent cpu usage" for the operating environment.14Returns the amount of free memory in bytes.14Returns the total amount of memory in bytes.14Returns an approximation of the total amount of memory, in bytes, allocated in heap memory for the current thread.18Returns a pre-processing Filter that inspects and possibly adapts the request state.17Returns a post-processingFilterwith the given description and operation.17Returns a pre-processingFilterwith the given description and operation.18Returns an immutableHeaderswith the given name value pairs as its set of headers.18Returns an immutableHeadersfrom the givenheaderswith the same header names and values.18Creates anHttpServerinstance with an initial context.18Creates anHttpsServerinstance with an initial context.18Visits aSnippetTreenode.12Visits aSystemPropertyTreenode.16Returns whether this instance is an inline tag.12For case with kind CaseTree.CaseKind.RULE, returns the statement or expression after the arrow.12Returns the kind of this case.12Returns the labels for this case.17Returns the labels for this case.17Returns the subclasses permitted by this type declaration.17Returns the module tree associated with this compilation unit, ornullif there is no module declaration.16Returns the tested pattern, or null if this instanceof does not use a pattern.16Visits aBindingPatternTreenode.19Visits aConstantCaseLabelTreenode.19Visits aDeconstructionPatternTreenode.17Visits aDefaultCaseLabelTreenode.17Visits aParenthesizedPatternTreenode.19Visits aPatternCaseLabelTreenode.12Visits aSwitchExpressionTreenode.13Visits aYieldTreenode.16Creates a newReturnTreeobject, to represent a@returntag or{@return}tag.18Creates a newSnippetTreeobject, to represent a{@snippet }tag.12Creates a newSystemPropertyTreeobject, to represent a{@systemProperty }tag.15Returns the language model type referred to by the leaf node of the givenDocTreePath, ornullif unknown.18Visits aSnippetTreenode.12Visits aSystemPropertyTreenode.13Sets the specifiedParameterNameProvider.18Visits aSnippetTreenode.12Visits aSystemPropertyTreenode.14Visits aBindingPatternTreenode.19Visits aConstantCaseLabelTreenode.com.sun.source.util.SimpleTreeVisitor.visitDeconstructionPattern(DeconstructionPatternTree, P) PREVIEW19Visits aDeconstructionPatternTreenode.17Visits aDefaultCaseLabelTreenode.17Visits aParenthesizedPatternTreenode.19Visits aPatternCaseLabelTreenode.14Visits aBindingPatternTreenode.19Visits aConstantCaseLabelTreenode.19Visits aDeconstructionPatternTreenode.17Visits aDefaultCaseLabelTreenode.17Visits aParenthesizedPatternTreenode.19Visits aPatternCaseLabelTreenode.17Returns theCharsetobject used for theConsole.12Skips over and discards exactlynbytes of data from this input stream.17Returns a filter that returnsStatus.ALLOWEDif the predicate on the class istrue.17Returns the JVM-wide deserialization filter factory.1717Returns a filter that merges the status of a filter and another filter.17Returns a filter that returnsStatus.REJECTEDif the predicate on the class istrue.17Returns a filter that invokes a given filter and mapsUNDECIDEDtoREJECTEDfor classes, with some special cases, and otherwise returns the status.18Returns the charset used in thisPrintStreaminstance.14Writes all bytes from the specified byte array to this stream.14Writes all bytes from the specified byte array to this stream.15Returns anOptionalcontaining the nominal descriptor for this instance.15Returns anOptionalcontaining the nominal descriptor for this instance.15Returns anOptionalcontaining the nominal descriptor for this instance.15Returnstrueif this character sequence is empty.12Returns aClassfor an array type whose component type is described by this Class.12Returns the component type of thisClass, if it describes an array type, ornullotherwise.12Returns a nominal descriptor for this instance, if one can be constructed, or an emptyOptionalif one cannot be.12Returns the descriptor string of the entity (class, interface, array class, primitive type, orvoid) represented by thisClassobject.17Returns an array containingClassobjects representing the direct subinterfaces or subclasses permitted to extend or implement this class or interface if it is sealed.16Returns an array ofRecordComponentobjects representing all the record components of this record class, ornullif this class is not a record class.15Returnstrueif and only if the underlying class is a hidden class.16Returnstrueif and only if this class is a record class.17Returnstrueif and only if thisClassobject represents a sealed class or interface.12Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.12Resolves this instance as aConstantDesc, the result of which is the instance itself.12Returns an enum descriptorEnumDescfor this instance, if one can be constructed, or an emptyOptionalif one cannot be.12Returns a nominal descriptor for the specifiedenumclass and name12Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.12Resolves this instance as aConstantDesc, the result of which is the instance itself.19Returns the value obtained by compressing the bits of the specifiedintvalue,i, in accordance with the specified bit mask.12Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.19Returns the value obtained by expanding the bits of the specifiedintvalue,i, in accordance with the specified bit mask.12Resolves this instance as aConstantDesc, the result of which is the instance itself.15Applies a conversion from a source type to a destination type.12Return a nominal descriptor for this instance, if one can be constructed, or an emptyOptionalif one cannot be.16Returns the class data associated with the lookup class of the givencallerlookup object, ornull.16Returns the element at the specified index in the class data, if the class data associated with the lookup class of the givencallerlookup object is aList.19Adapts a target var handle by pre-processing a sub-sequence of its coordinate values with a filter (a method handle).19Returns a var handle which will discard some dummy coordinates before delegating to the target var handle.16Drop the return value of the target handle (if any).19Adapts a target var handle by pre-processing incoming coordinate values using unary filter functions.19Adapts a target var handle by pre-processing incoming and outgoing values using a pair of filter functions.19Provides a target var handle with one or more bound coordinates in advance of the var handle's invocation.15Creates a hidden class or interface frombytes, returning aLookupon the newly created class or interface.16Creates a hidden class or interface frombyteswith associated class data, returning aLookupon the newly created class or interface.15Ensures thattargetClasshas been initialized.14Returnstrueif this lookup has full privilege access, i.e.14Reports a lookup class in another module that this lookup object was previously teleported from, ornull.19Creates a var handle object, which can be used to dereference a memory segmentPREVIEW by viewing its contents as a sequence of the provided value layout.19Provides a var handle which adapts the coordinate values of the target var handle, by re-arranging them so that the new coordinates match the provided ones.12Returns a nominal descriptor for this instance, if one can be constructed, or an emptyOptionalif one cannot be.12Returns a descriptor string for this method type.12Return a nominal descriptor for this instance, if one can be constructed, or an emptyOptionalif one cannot be.16Returnstrueif this VarHandle has invoke-exact behavior.16Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke behavior.16Returns a VarHandle, with access to the same variable(s) as this VarHandle, but whose invocation behavior of access mode methods is adjusted to invoke-exact behavior.19Returns the value obtained by compressing the bits of the specifiedlongvalue,i, in accordance with the specified bit mask.12Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.19Returns the value obtained by expanding the bits of the specifiedlongvalue,i, in accordance with the specified bit mask.12Resolves this instance as aConstantDesc, the result of which is the instance itself.15Returns the mathematical absolute value of anintvalue if it is exactly representable as anint, throwingArithmeticExceptionif the result overflows the positiveintrange.15Returns the mathematical absolute value of anlongvalue if it is exactly representable as anlong, throwingArithmeticExceptionif the result overflows the positivelongrange.18Returns the smallest (closest to negative infinity)intvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)intvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the ceiling modulus of theintarguments.18Returns the ceiling modulus of thelongandintarguments.18Returns the ceiling modulus of thelongarguments.18Returns the quotient of the arguments, throwing an exception if the result overflows anint.18Returns the quotient of the arguments, throwing an exception if the result overflows along.18Returns the largest (closest to positive infinity)intvalue that is less than or equal to the algebraic quotient.18Returns the largest (closest to positive infinity)longvalue that is less than or equal to the algebraic quotient.18Returns as alongthe most significant 64 bits of the unsigned 128-bit product of two unsigned 64-bit factors.17Returns aBufferedReaderconnected to the standard error of the process.17Returns aBufferedReaderconnected to the standard error of this process using a Charset.17Returns aBufferedReaderconnected to the standard output of the process.17Returns aBufferedReaderconnected to the standard output of this process using a Charset.17Returns aBufferedWriterconnected to the normal input of the process using the native encoding.17Returns aBufferedWriterconnected to the normal input of the process using a Charset.16Tests if the referent of this reference object isobj.16Invokes the specified default method on the givenproxyinstance with the given parameters.15Returns anOptionalcontaining the nominal descriptor for this instance.15Returns the mathematical absolute value of anintvalue if it is exactly representable as anint, throwingArithmeticExceptionif the result overflows the positiveintrange.15Returns the mathematical absolute value of anlongvalue if it is exactly representable as anlong, throwingArithmeticExceptionif the result overflows the positivelongrange.18Returns the smallest (closest to negative infinity)intvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)intvalue that is greater than or equal to the algebraic quotient.18Returns the smallest (closest to negative infinity)longvalue that is greater than or equal to the algebraic quotient.18Returns the ceiling modulus of theintarguments.18Returns the ceiling modulus of thelongandintarguments.18Returns the ceiling modulus of thelongarguments.14Returns the argument decremented by one, throwing an exception if the result overflows anint.14Returns the argument decremented by one, throwing an exception if the result overflows along.18Returns the quotient of the arguments, throwing an exception if the result overflows anint.18Returns the quotient of the arguments, throwing an exception if the result overflows along.18Returns the largest (closest to positive infinity)intvalue that is less than or equal to the algebraic quotient.18Returns the largest (closest to positive infinity)longvalue that is less than or equal to the algebraic quotient.14Returns the argument incremented by one, throwing an exception if the result overflows anint.14Returns the argument incremented by one, throwing an exception if the result overflows along.14Returns the negation of the argument, throwing an exception if the result overflows anint.14Returns the negation of the argument, throwing an exception if the result overflows along.18Returns as alongthe most significant 64 bits of the unsigned 128-bit product of two unsigned 64-bit factors.12Returns anOptionalcontaining the nominal descriptor for this instance, which is the instance itself.15Formats using this string as the format string, and the supplied arguments.12Adjusts the indentation of each line of this string based on the value ofn, and normalizes line termination characters.12Resolves this instance as aConstantDesc, the result of which is the instance itself.15Returns a string whose value is this string, with incidental white space removed from the beginning and end of every line.12This method allows the application of a function tothisstring.15Returns a string whose value is this string, with escape sequences translated as if in a string literal.19Returnstrueif this thread is a virtual thread.19Waits for this thread to terminate for up to the given waiting duration.19Returns a builder for creating a platformThreadorThreadFactorythat creates platform threads.19Returns a builder for creating a virtualThreadorThreadFactorythat creates virtual threads.19Causes the currently executing thread to sleep (temporarily cease execution) for the specified duration, subject to the precision and accuracy of system timers and schedulers.19Creates a virtual thread to execute a task and schedules it to execute.19Returns the identifier of this Thread.19Returns a BigInteger whose value is(this * val).17Joins a multicast group.17Leave a multicast group on a specified local interface.19Binds the socket to this local address when creating connections for sending requests.16Returns aBodyPublisherthat publishes a request body consisting of the concatenation of the request bodies published by a sequence of publishers.18Sets the request method of this builder to HEAD.16Creates aBuilderwhose initial state is copied from an existingHttpRequest.12Returns anOptionalcontaining theSSLSessionin use on the original connection that retrieved the network resource.13Creates a new buffer whose content is a shared subsequence of this buffer's content.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new byte buffer whose content is a shared subsequence of this buffer's content.19Maps a region of this channel's file into a new mapped memory segment, with the given offset, size and memory session.15Opens a server-socket channel.15Opens a socket channel.15Opens a server-socket channel.15Opens a socket channel.13Absolute bulk get method.13Absolute bulk get method.15Returnstrueif this character buffer is empty.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new char buffer whose content is a shared subsequence of this buffer's content.18Returns a charset object for the named charset.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new double buffer whose content is a shared subsequence of this buffer's content.12Finds and returns the position of the first mismatched byte in the content of two files, or-1Lif there is no mismatch.13Constructs a newFileSystemto access the contents of a file as a file system.13Constructs a newFileSystemto access the contents of a file as a file system.13Constructs a newFileSystemto access the contents of a file as a file system.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new float buffer whose content is a shared subsequence of this buffer's content.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new int buffer whose content is a shared subsequence of this buffer's content.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new long buffer whose content is a shared subsequence of this buffer's content.13Forces any changes made to a region of this buffer's content to be written to the storage device containing the mapped file.13Absolute bulk get method.13Absolute bulk get method.13Absolute bulk put method (optional operation).13Absolute bulk put method (optional operation).16Absolute bulk put method (optional operation).13Creates a new short buffer whose content is a shared subsequence of this buffer's content.18Retrieves the attributes associated with the given alias.18Retrieves the attributes associated with the given alias.19Returns locale used to create this instance.15Gets the character used for grouping separator for currencies.15Sets the character used for grouping separator for currencies.1212Returns a compact number format for the specifiedlocaleandformatStyle.12Returns a newNumberFormatinstance which formats a number in its compact form for the specifiedlocaleandformatStyle.19Checks if this chronology is ISO based.19IsoChronologyis an ISO based chronology, which supports fields inIsoFields, such asDAY_OF_QUARTERandQUARTER_OF_YEAR.19JapaneseChronologyis an ISO based chronology, which supports fields inIsoFields, such asDAY_OF_QUARTERandQUARTER_OF_YEAR.19MinguoChronologyis an ISO based chronology, which supports fields inIsoFields, such asDAY_OF_QUARTERandQUARTER_OF_YEAR.19ThaiBuddhistChronologyis an ISO based chronology, which supports fields inIsoFields, such asDAY_OF_QUARTERandQUARTER_OF_YEAR.18Checks if this duration is positive, excluding zero.19Creates a locale specific formatter derived from the requested template for the ISO chronology.16Appends the day period text to the formatter.19Appends a localized pattern to the formatter using the requested template.19Returns the formatting pattern for the requested template for a locale and chronology.12Returns a new CompletionStage that, when this stage completes exceptionally, is executed with this stage's exception as the argument to the supplied function, using this stage's default asynchronous execution facility.12Returns a new CompletionStage that, when this stage completes exceptionally, is executed with this stage's exception as the argument to the supplied function, using the supplied Executor.12Returns a new CompletionStage that, when this stage completes exceptionally, is composed using the results of the supplied function applied to this stage's exception.12Returns a new CompletionStage that, when this stage completes exceptionally, is composed using the results of the supplied function applied to this stage's exception, using this stage's default asynchronous execution facility.12Returns a new CompletionStage that, when this stage completes exceptionally, is composed using the results of the supplied function applied to this stage's exception, using the supplied Executor.19Creates an Executor that starts a new Thread for each task.19Creates an Executor that starts a new virtual Thread for each task.19Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted.19Unless this is theForkJoinPool.commonPool(), initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted, and waits until all tasks have completed execution and the executor has terminated.19Submits the given task without guaranteeing that it will eventually execute in the absence of available active threads.19Changes the target parallelism of this pool, controlling the future creation, use, and termination of worker threads.19Returns a newForkJoinTaskthat performs thecallmethod of the givenCallableas its action, and returns its result uponForkJoinTask.join(), translating any checked exceptions encountered intoRuntimeException.19Tries to join this task, returning true if it completed (possibly exceptionally) before the given timeout and the current thread has not been interrupted.19Tries to join this task, returning true if it completed (possibly exceptionally) before the given timeout.19Returns the exception thrown by the task, without waiting.19Returns the computed result, without waiting.19Returns the computation state.14Sets the object to be returned by invocations ofgetBlockerfor the current thread.19Creates a new, empty HashMap suitable for the expected number of mappings.19Creates a new, empty HashSet suitable for the expected number of elements.19Creates a new, empty, insertion-ordered LinkedHashMap suitable for the expected number of mappings.19Creates a new, empty LinkedHashSet suitable for the expected number of elements.19Obtains a locale from a language code.19Obtains a locale from language and country.19Obtains a locale from language, country and variant.16Get a thread identifier for the thread where message originated16Set an identifier for the thread where the message originated.17Returns a copy of the givenMap.Entry.16Checks if the sub-range fromfromIndex(inclusive) tofromIndex + size(exclusive) is within the bounds of range from0(inclusive) tolength(exclusive).16Checks if the sub-range fromfromIndex(inclusive) totoIndex(exclusive) is within the bounds of range from0(inclusive) tolength(exclusive).16Checks if theindexis within the bounds of the range from0(inclusive) tolength(exclusive).19Returns a string equivalent to the string returned byObject.toStringif that method andhashCodeare not overridden.19Returns an instance ofRandomthat delegates method calls to theRandomGeneratorargument.19Returns a short description of the tool, or an emptyOptionalif no description is available.17Returns a new pseudorandom number generator, split off from this one, that implements theRandomGeneratorandRandomGenerator.SplittableGeneratorinterfaces.17Returns an effectively unlimited stream of new pseudorandom number generators, each of which implements theRandomGenerator.SplittableGeneratorinterface.17Returns a stream producing the givenstreamSizenumber of new pseudorandom number generators, each of which implements theRandomGenerator.SplittableGeneratorinterface.17Returns a stream producing the givenstreamSizenumber of new pseudorandom number generators, each of which implements theRandomGenerator.SplittableGeneratorinterface.17Returns an effectively unlimited stream of new pseudorandom number generators, each of which implements theRandomGenerator.SplittableGeneratorinterface.12Returns aCollectorthat is a composite of two downstream collectors.16Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns a stream consisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns aDoubleStreamconsisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns anIntStreamconsisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Returns aLongStreamconsisting of the results of replacing each element of this stream with multiple elements, specifically zero or more elements.16Accumulates the elements of this stream into aList.19Creates a new, empty WeakHashMap suitable for the expected number of mappings.18Prints an error.18Prints an error at the location of the element.18Prints a note.18Prints a note at the location of the element.18Prints a warning.18Prints a warning at the location of the element.13Returnstrueif preview features are enabled andfalseotherwise.1919Returnstrueif this is a kind of executable: eitherMETHODorCONSTRUCTORorSTATIC_INITorINSTANCE_INIT.19Returnstrueif this is a kind of initializer: eitherSTATIC_INITorINSTANCE_INIT.19Returnstrueif this is a kind of variable: includingENUM_CONSTANT,FIELD,PARAMETER,LOCAL_VARIABLE,EXCEPTION_PARAMETER,RESOURCE_VARIABLE, andBINDING_VARIABLE.16Visits a record component element.17Returns the permitted classes of this class or interface element in declaration order.16Returns the record components of this class or interface element in declaration order.18Returns the least runtime version that supports this source version; otherwisenull.18Returns the latest source version that is usable under the runtime version argument.14Visits a record component element.16Returns a list of record components inelements.16Returns a set of record components inelements.14Visits aBINDING_VARIABLEvariable element.16Visits aRECORDtype element.14Visits aBINDING_VARIABLEvariable element.18Returns the file object for this element ornullif there is no such file object.18Returns the outermost type element an element is contained in if such a containing element exists; otherwise returnsnull.17Returnstrueif the module element is an automatic module,falseotherwise.16Returns the record component for the given accessor.12Returns anOptionalcontaining theSSLSessionin use on this connection.19Returns a prioritized array of signature scheme names that can be used over the SSL/TLS/DTLS protocols.19Sets the prioritized array of signature scheme names that can be used over the SSL/TLS/DTLS protocols.18Executes aCallablewithsubjectas the current subject.18Returns the current subject.12Returns an array of files representing the values to show by default in the file chooser shortcuts panel.17Returns an icon for a file, directory, or folder as it would be displayed in a system file browser for the requested size.18Returns a file object for output representing the specified relative name in the specified package in the given location.18Returns a file object for output representing the specified class of the specified kind in the given package-oriented location.13Returns file objects representing the given paths.13Creates a new NamespaceAware instance of theDocumentBuilderFactorybuiltin system-default implementation.13Creates a new NamespaceAware instance of aDocumentBuilderFactory.13Creates a new NamespaceAware instance of aDocumentBuilderFactoryfrom the class name.13Creates a new NamespaceAware instance of theSAXParserFactorybuiltin system-default implementation.13Creates a new NamespaceAware instance of aSAXParserFactory.13Creates a new NamespaceAware instance of aSAXParserFactoryfrom the class name.18Returns the value of the specified property.18Sets a property for thisXPathFactory.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.ByteVector.fromMemorySegment(VectorSpecies<Byte>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.ByteVector.fromMemorySegment(VectorSpecies<Byte>, MemorySegment, long, ByteOrder, VectorMask<Byte>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.ByteVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Byte>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.DoubleVector.fromMemorySegment(VectorSpecies<Double>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.DoubleVector.fromMemorySegment(VectorSpecies<Double>, MemorySegment, long, ByteOrder, VectorMask<Double>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.DoubleVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Double>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.FloatVector.fromMemorySegment(VectorSpecies<Float>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.FloatVector.fromMemorySegment(VectorSpecies<Float>, MemorySegment, long, ByteOrder, VectorMask<Float>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.FloatVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Float>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.IntVector.fromMemorySegment(VectorSpecies<Integer>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.IntVector.fromMemorySegment(VectorSpecies<Integer>, MemorySegment, long, ByteOrder, VectorMask<Integer>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.IntVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Integer>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.LongVector.fromMemorySegment(VectorSpecies<Long>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.LongVector.fromMemorySegment(VectorSpecies<Long>, MemorySegment, long, ByteOrder, VectorMask<Long>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.LongVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Long>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.jdk.incubator.vector.ShortVector.fromMemorySegment(VectorSpecies<Short>, MemorySegment, long, ByteOrder) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment.jdk.incubator.vector.ShortVector.fromMemorySegment(VectorSpecies<Short>, MemorySegment, long, ByteOrder, VectorMask<Short>) PREVIEW19Loads a vector from a memory segmentPREVIEW starting at an offset into the memory segment and using a mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.jdk.incubator.vector.ShortVector.intoMemorySegment(MemorySegment, long, ByteOrder, VectorMask<Short>) PREVIEW19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses the lane elements of this vector selecting lanes under the control of a specific mask.19Expands the lane elements of this vector under the control of a specific mask.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order.19Stores this vector into a memory segmentPREVIEW starting at an offset using explicit byte order and a mask.19Compresses set lanes from this mask.19Removes lanes numberedNfrom this mask where the adjusted indexN+offset, is not in the range[0..limit-1].19Loads a vector of this species from a memory segmentPREVIEW starting at an offset into the memory segment.19Returns a mask of this species where only the lanes at index N such that the adjusted indexN+offsetis in the range[0..limit-1]are set.19Loop control function which returns the largest multiple ofVLENGTHthat is less than or equal to the givenlengthvalue.17Returns a writer that can be used to write diagnostic output, ornullif no such writer is available.17Returns a writer that can be used to write non-diagnostic output, ornullif no such writer is available.18Prints a diagnostic message related to a position within a range of characters in a tree node.17Prints a diagnostic message related to a position within a range of characters in a file.17Returns the locale for this doclet.17Returns the reporter for this doclet.19Returnstrueif this is a virtual Thread,falseotherwise.19Filter out events and write them to a new file.17Writes recording data to a file.19Returns a collection ofHighlights which can be used to color the given snippet.17Set to true to specify the inputs and outputs are connected to an interactive terminal that can interpret the ANSI escape codes.17Writes recording data to a file.14Receives notification of the XML declaration.
-
New ConstructorsConstructorAdded inDescription18Creates a mutable
Headersfrom the givenheaderswith the same header names and values.19Report an InvalidClassException for the reason and cause specified.19Report an InvalidClassException for the reason and cause specified.19Constructs anInvalidObjectExceptionwith the given reason and cause.19Create an ObjectStreamException with the specified message and cause.19Create an ObjectStreamException with the specified cause.16Constructs a newIndexOutOfBoundsExceptionclass with an argument indicating the illegal index.12Creates a server socket with a user-specifiedSocketImpl.19Constructs a newSocketExceptionwith the specified detail message and cause.19Constructs a newSocketExceptionwith the specified cause.14Creates aCompactNumberFormatusing the given decimal pattern, decimal format symbols, compact patterns, and plural rules.19Creates a ForkJoinWorkerThread operating in the given thread group and pool, and with the given policy for preserving ThreadLocals.15Constructs aNoSuchElementExceptionwith the specified detail message and cause.15Constructs aNoSuchElementExceptionwith the specified cause.19Creates aSSLHandshakeExceptionwith the specified detail message and cause.19Creates aSSLKeyExceptionwith the specified detail message and cause.19Creates aSSLPeerUnverifiedExceptionwith the specified detail message and cause.19Creates aSSLProtocolExceptionwith the specified detail message and cause.
-
New Enum ConstantsEnum ConstantAdded inDescription18Used for instances of
SnippetTreerepresenting an@snippettag.12Used for instances ofSystemPropertyTreerepresenting an@systemPropertytag.16Used for instances ofBindingPatternTree.19Used for instances ofConstantCaseLabelTreePREVIEW.19Used for instances ofDeconstructionPatternTreePREVIEW.17Used for instances ofDefaultCaseLabelTreePREVIEW.17Used for instances ofParenthesizedPatternTreePREVIEW.19Used for instances ofPatternCaseLabelTreePREVIEW.16Used for instances ofClassTreerepresenting records.12Used for instances ofSwitchExpressionTree.13Used for instances ofYieldTree.16Record component15Unicode script "Chorasmian".19Unicode script "Cypro Minoan".15Unicode script "Dives Akuru".12Unicode script "Dogra".13Unicode script "Elymaic".12Unicode script "Gunjala Gondi".12Unicode script "Hanifi Rohingya".15Unicode script "Khitan Small Script".12Unicode script "Makasar".12Unicode script "Medefaidrin".13Unicode script "Nandinagari".13Unicode script "Nyiakeng Puachue Hmong".12Unicode script "Old Sogdian".19Unicode script "Old Uyghur".12Unicode script "Sogdian".19Unicode script "Tangsa".19Unicode script "Toto".19Unicode script "Vithkuqi".13Unicode script "Wancho".15Unicode script "Yezidi".16Unix domain (Local) interprocess communication.16A binding variable in a pattern.16A record class.16A record component of arecord.17The modifiernon-sealed17The modifiersealed12The version recognized by the Java Platform, Standard Edition 12.13The version recognized by the Java Platform, Standard Edition 13.14The version recognized by the Java Platform, Standard Edition 14.15The version recognized by the Java Platform, Standard Edition 15.16The version recognized by the Java Platform, Standard Edition 16.17The version recognized by the Java Platform, Standard Edition 17.18The version recognized by the Java Platform, Standard Edition 18.19The version recognized by the Java Platform, Standard Edition 19.14A record declaration.