Package com.diffplug.spotless.biome
Class BiomeSettings
java.lang.Object
com.diffplug.spotless.biome.BiomeSettings
Settings and constants for Biome to use.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic Stringstatic Stringstatic StringgetUrlPattern(String version) static Stringstatic booleanversionHigherThanOrEqualTo(String version, int major, int minor, int patch) Checks if the version of Biome is equal to or higher than the given major, minor, and patch version.
-
Method Details
-
configName
- Returns:
- The name of the default config file.
-
defaultVersion
- Returns:
- Default version to use when no version was set explicitly.
-
getDownloadFilePattern
- Returns:
- The pattern for
String.format()for the file name of a Biome executable for a certain version and architecture. The first parameter is the platform, the second is the OS, the third is the architecture.
-
getUrlPattern
- Parameters:
version- The biome version for which to get the URL pattern, e.g. 1.2.0 or 2.0.6.- 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
- Returns:
- The short name of this flavor, e.g.
biome.
-
versionHigherThanOrEqualTo
Checks if the version of Biome is equal to or higher than the given major, minor, and patch version.- Parameters:
version- The version string to check, e.g. "1.2.3".major- The major version to compare against.minor- The minor version to compare against.patch- The patch version to compare against.- Returns:
- true if the version is higher than or equal to the given major, minor, and patch version,
-