Top Description Fields Constructors Methods
jdk.internal.misc

public Class PreviewFeatures

extends Object
Class Inheritance

Defines static methods to test if preview features are enabled at run-time.

Field Summary

Modifier and TypeField and Description
private static final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
ensureEnabled()

Ensures that preview features are enabled.

public static boolean

Returns:

true if preview features are enabled, otherwise false
isEnabled
()

Returns true if preview features are enabled, otherwise false.

private static native boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ENABLEDback to summary
private static final boolean ENABLED

Constructor Detail

PreviewFeaturesback to summary
private PreviewFeatures()

Method Detail

ensureEnabledback to summary
public static void ensureEnabled()

Ensures that preview features are enabled.

Exceptions
UnsupportedOperationException:
if preview features are not enabled
isEnabledback to summary
public static boolean isEnabled()

Returns true if preview features are enabled, otherwise false.

Returns:boolean

true if preview features are enabled, otherwise false

isPreviewEnabledback to summary
private static native boolean isPreviewEnabled()