public enum AmazonVersion extends Enum<AmazonVersion> implements VersionWithPriority
| Enum Constant and Description |
|---|
AmazonLinux |
AmazonLinux2 |
| Modifier and Type | Method and Description |
|---|---|
List<Peculiarity> |
pecularities() |
int |
priority()
as we rely on 'os.version' only, this detection is pretty weak
it should have a lower priority than others
|
static AmazonVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AmazonVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfpriorityOf, sorteByPriorityasList, emptypublic static final AmazonVersion AmazonLinux
public static final AmazonVersion AmazonLinux2
public static AmazonVersion[] values()
for (AmazonVersion c : AmazonVersion.values()) System.out.println(c);
public static AmazonVersion 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 List<Peculiarity> pecularities()
pecularities in interface HasPecularitiespublic int priority()
priority in interface VersionWithPriorityCopyright © 2022. All rights reserved.