Class JavaFeatures
java.lang.Object
one.nio.util.JavaFeatures
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodHandleprivate static final MethodHandle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static MethodHandleprivate static MethodHandlestatic booleanCalls Class.isRecord() since Java 14 previewstatic voidCalls Thread.onSpinWait() since Java 9; does nothing otherwise
-
Field Details
-
onSpinWait
-
isRecord
-
-
Constructor Details
-
JavaFeatures
public JavaFeatures()
-
-
Method Details
-
getOnSpinWait
-
getIsRecord
-
onSpinWait
public static void onSpinWait()Calls Thread.onSpinWait() since Java 9; does nothing otherwise -
isRecord
Calls Class.isRecord() since Java 14 preview- Parameters:
cls- a class object- Returns:
- the result of the Class.isRecord() method invoked. It is always false, if the version of the JVM Runtime is less than 14
-