Package com.diffplug.spotless.rome
Enum BiomeFlavor
- java.lang.Object
-
- java.lang.Enum<BiomeFlavor>
-
- com.diffplug.spotless.rome.BiomeFlavor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BiomeFlavor>
public enum BiomeFlavor extends java.lang.Enum<BiomeFlavor>
The flavor of Biome to use. Exists for compatibility reason, may be removed shortly.Will be removed once the old Rome project is not supported anymore.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
configName()
java.lang.String
defaultVersion()
java.lang.String
getDownloadFilePattern()
java.lang.String
getUrlPattern()
java.lang.String
shortName()
static BiomeFlavor
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BiomeFlavor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIOME
public static final BiomeFlavor BIOME
The new forked Biome project.
-
ROME
@Deprecated public static final BiomeFlavor ROME
Deprecated.Will be removed once the old Rome project is not supported anymore.The old deprecated Rome project.
-
-
Method Detail
-
values
public static BiomeFlavor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BiomeFlavor c : BiomeFlavor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BiomeFlavor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
configName
public java.lang.String configName()
- Returns:
- The name of the default config file.
-
defaultVersion
public java.lang.String defaultVersion()
- Returns:
- Default version to use when no version was set explicitly.
-
getDownloadFilePattern
public java.lang.String getDownloadFilePattern()
- Returns:
- The pattern for
String.format()
for the file name of a Biome executable for a certain version and architecure. The first parameter is the platform, the second is the OS, the third is the architecture.
-
getUrlPattern
public java.lang.String getUrlPattern()
- Returns:
- The pattern for
String.format()
for the URL where the executables can be downloaded. The first parameter is the version, the second parameter is the OS / platform.
-
shortName
public java.lang.String shortName()
- Returns:
- The short name of this flavor, i.e.
rome
orbiome
.
-
-