APIdia Launch Partner
Top Language Model Lazy Constants Pem Api Structured Concurrency
OpenJDK 27

Preview API


Language Model Summary

SincePreview Item and Description
23
javax.lang.model.util.AbstractAnnotationValueVisitorPreview<
the return type of this visitor's methods
R
,
the type of the additional parameter to this visitor's methods.
P
>

A skeletal visitor for annotation values with default behavior appropriate for a preview source version.

23
javax.lang.model.util.AbstractElementVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A skeletal visitor of program elements with default behavior appropriate for a preview source version.

23
javax.lang.model.util.AbstractTypeVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A skeletal visitor of types with default behavior appropriate for a preview source version.

23
javax.lang.model.util.ElementKindVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A visitor of program elements based on their kind with default behavior appropriate for a preview source version.

23
javax.lang.model.util.ElementScannerPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A scanning visitor of program elements with default behavior appropriate for a preview source version.

23
javax.lang.model.util.SimpleAnnotationValueVisitorPreview<
the return type of this visitor's methods
R
,
the type of the additional parameter to this visitor's methods.
P
>

A simple visitor for annotation values with default behavior appropriate for a preview source version.

23
javax.lang.model.util.SimpleElementVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A simple visitor of program elements with default behavior appropriate for a preview source version.

23
javax.lang.model.util.SimpleTypeVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A simple visitor of types with default behavior appropriate for a preview source version.

23
javax.lang.model.util.TypeKindVisitorPreview<
the return type of this visitor's methods. Use Void for visitors that do not need to return results.
R
,
the type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
P
>

A visitor of types based on their kind with default behavior appropriate for a preview source version.

Lazy Constants (Third Preview of JEP 531) Summary

SincePreview Item and Description
26
java.lang.LazyConstant<
type of the constant
T
>

A lazy constant is a holder of content that can be initialized at most once.

26

Returns:

a new lazily computed list of the provided size
java.util.List.ofLazy
(int
the size of the returned lazy list
size
,
IntFunction<? extends E>
to invoke whenever an element is first accessed (may not return null)
computingFunction
)

Returns a new lazily computed list of the provided size.

26

Returns:

a new lazily computed map with the provided keys
java.util.Map.ofLazy
(Set<? extends K>
the (non-null) keys in the returned computed map
keys
,
Function<? super K, ? extends V>
to invoke whenever an associated value is first accessed
computingFunction
)

Returns a new lazily computed map with the provided keys.

27

Returns:

a new lazily computed set whose logical membership for each distinct element candidate in the set of elementCandidates is computed via the provided computingFunction on demand
java.util.Set.ofLazy
(Set<? extends E>
the (non-null) element candidates to be evaluated
elementCandidates
,
Predicate<? super E>
to invoke whenever the membership status of an element candidate is first computed
computingFunction
)

Returns a new lazily computed set whose logical membership for each distinct element candidate in the set of elementCandidates is computed via the provided computingFunction on demand.

PEM Encodings of Cryptographic Objects (Third Preview of JEP 538) Summary

SincePreview Item and Description
27
java.security.BinaryEncodable

This interface identifies the cryptographic objects that can be converted to and from binary data, and thereby encoded and decoded as PEM text.

26
java.security.PEM

A BinaryEncodable representing a Privacy-Enhanced Mail (PEM) structure composed of a type identifier, Base64-encoded content, and optional leading data that precedes the PEM header.

25
java.security.PEMDecoder

PEMDecoder implements a decoder for Privacy-Enhanced Mail (PEM) data.

25
java.security.PEMEncoder

PEMEncoder implements an encoder for Privacy-Enhanced Mail (PEM) data.

27
javax.crypto.CryptoException

Thrown to indicate a cryptographic failure during processing.

27

Returns:

an EncryptedPrivateKeyInfo
javax.crypto.EncryptedPrivateKeyInfo.encrypt
(BinaryEncodable
the BinaryEncodable to encrypt. Supported types include PrivateKey, KeyPair, and PKCS8EncodedKeySpec.
be
,
char[]
the password used for PBE encryption. This array is cloned before use.
password
,
String
the PBE encryption algorithm
algorithm
,
AlgorithmParameterSpec
the AlgorithmParameterSpec used for encryption. If null, the provider’s default parameters are applied.
params
,
Provider
the Provider for SecretKeyFactory and Cipher operations. If null, the default provider list is used.
provider
)

Creates an EncryptedPrivateKeyInfo by encrypting the specified BinaryEncodable.

27

Returns:

an EncryptedPrivateKeyInfo
javax.crypto.EncryptedPrivateKeyInfo.encrypt
(BinaryEncodable
the BinaryEncodable to encrypt. Supported types include PrivateKey, KeyPair, and PKCS8EncodedKeySpec.
be
,
char[]
the password used for PBE encryption. This array is cloned before use.
password
)

Creates an EncryptedPrivateKeyInfo by encrypting the specified BinaryEncodable.

27

Returns:

an EncryptedPrivateKeyInfo
javax.crypto.EncryptedPrivateKeyInfo.encrypt
(BinaryEncodable
the BinaryEncodable to encrypt. Supported types include PrivateKey, KeyPair, and PKCS8EncodedKeySpec.
be
,
Key
the key used to encrypt the encoding
encryptKey
,
String
the encryption algorithm, such as a password-based encryption (PBE) algorithm
algorithm
,
AlgorithmParameterSpec
the AlgorithmParameterSpec used for encryption. If null, the provider’s default parameters are applied.
params
,
Provider
the Provider for Cipher operations. If null, the default provider list is used.
provider
,
SecureRandom
the SecureRandom instance used during encryption. If null, the default is used.
random
)

Creates an EncryptedPrivateKeyInfo by encrypting the specified BinaryEncodable.

25

Returns:

the decrypted PrivateKey
javax.crypto.EncryptedPrivateKeyInfo.getKey
(char[]
the password used for PBE decryption. The array is cloned before use.
password
)

Extracts and returns the enclosed PrivateKey using the specified password.

27

Returns:

the decrypted PrivateKey
javax.crypto.EncryptedPrivateKeyInfo.getKey
(Key
the decryption key; must not be null
decryptKey
)

Extracts and returns the enclosed PrivateKey using the specified decryption key.

26

Returns:

a decrypted KeyPair
javax.crypto.EncryptedPrivateKeyInfo.getKeyPair
(char[]
the password used for PBE decryption. The array is cloned before use.
password
)

Extracts and returns the enclosed KeyPair using the specified password.

27

Returns:

a decrypted KeyPair
javax.crypto.EncryptedPrivateKeyInfo.getKeyPair
(Key
the decryption key; must not be null
decryptKey
)

Extracts and returns the enclosed KeyPair using the specified decryption key.

Structured Concurrency (Seventh Preview of JEP 533) Summary

SincePreview Item and Description
21
java.util.concurrent.StructureViolationException

Thrown when a structure violation is detected.

21
java.util.concurrent.StructuredTaskScope<
the result type of subtasks forked in the scope
T
,
the type of the result returned by the join() method
R
,
the type of the exception thrown by the join() method
R_X extends Throwable
>

An API for structured concurrency.

27
java.util.concurrent.StructuredTaskScope.CancelledByTimeoutException

The exception cause when join() throws because the scope was cancelled by a timeout.

25
java.util.concurrent.StructuredTaskScope.Configuration

Represents the configuration for a StructuredTaskScope.

25
java.util.concurrent.StructuredTaskScope.Joiner<
the result type of subtasks forked in the scope
T
,
the type of the result returned by the join() method
R
,
the type of the exception thrown by the join() method
R_X extends Throwable
>

An object used with a StructuredTaskScope to produce the outcome for the scope's join() method.

21
21