Uses of Enum Class
eu.cloudnetservice.common.jvm.JavaVersion
Packages that use JavaVersion
-
Uses of JavaVersion in eu.cloudnetservice.common.jvm
Fields in eu.cloudnetservice.common.jvm declared as JavaVersionModifier and TypeFieldDescriptionprivate static final JavaVersion[]JavaVersion.JAVA_VERSIONSprivate static final JavaVersionJavaVersion.LATEST_VERSIONprivate static final JavaVersionJavaVersion.RUNTIME_VERSIONMethods in eu.cloudnetservice.common.jvm that return JavaVersionModifier and TypeMethodDescriptionstatic @NonNull JavaVersionJavaVersion.guessFromMajor(int major) Guesses the java version from the given major version, returning eitherJAVA_NEXTorJAVA_UNSUPPORTEDin case no known version uses the given major version.private static @NonNull JavaVersion[]JavaVersion.resolveActualJavaVersions()Constructs an array of the java versions that are actually usable in the runtime (this excludes the unsupported and next constants).private static @NonNull JavaVersionJavaVersion.resolveRuntimeVersion()Resolves the runtime version of the current jvm.static @NonNull JavaVersionJavaVersion.runtimeVersion()Get the java version enum constant representing the current runtime version.static JavaVersionReturns the enum constant of this class with the specified name.static JavaVersion[]JavaVersion.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in eu.cloudnetservice.common.jvm that return types with arguments of type JavaVersionModifier and TypeMethodDescriptionstatic @NonNull Optional<JavaVersion>JavaVersion.fromClassFileVersion(double classFileVersion) Finds the java version enum constant that is representing the given class file version.static @NonNull Optional<JavaVersion>JavaVersion.fromMajor(int version) Finds the exact known java version from the given major version.Methods in eu.cloudnetservice.common.jvm with parameters of type JavaVersionModifier and TypeMethodDescriptionbooleanJavaVersion.isInRange(@NonNull JavaVersion lowerBound, @NonNull JavaVersion upperBound) Checks if this java version is newer or at the given lower bound and older or at the given upper bound.booleanJavaVersion.isNewerOrAt(@NonNull JavaVersion version) Checks if this java version is newer or at the given other version.booleanJavaVersion.isOlderOrAt(@NonNull JavaVersion version) Checks if this java version is older or at the given other version.