public enum Versions extends Enum<Versions> implements Version
| Modifier and Type | Class and Description |
|---|---|
static class |
Versions.UnknownVersion |
| Modifier and Type | Method and Description |
|---|---|
static Version |
byNumber(int number) |
static void |
check(int formatNumber,
Version min,
Version max) |
static void |
checkMax(int formatNumber,
Versions max) |
static void |
checkMin(int formatNumber,
Versions min) |
static Version |
getLatest() |
int |
getNumber() |
static Version |
getOldest() |
static Version |
max(Version first,
Version second) |
static Version |
max(Version first,
Version second,
Version third) |
static Versions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Versions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Versions v_7_0_0
public static final Versions v_8_1_0
public static final Versions v_8_10_0
public static Versions[] values()
for (Versions c : Versions.values()) System.out.println(c);
public static Versions valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void checkMin(int formatNumber,
Versions min)
public static void checkMax(int formatNumber,
Versions max)
public static Version getLatest()
public static Version getOldest()
public static Version byNumber(int number)
Copyright © 2024. All rights reserved.