Class BiomeSettings

java.lang.Object
com.diffplug.spotless.biome.BiomeSettings

public final class BiomeSettings extends Object
Settings and constants for Biome to use.
  • Method Details

    • configName

      public static String configName()
      Returns:
      The name of the default config file.
    • defaultVersion

      public static String defaultVersion()
      Returns:
      Default version to use when no version was set explicitly.
    • getDownloadFilePattern

      public static String 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

      public static String getUrlPattern(String version)
      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

      public static String shortName()
      Returns:
      The short name of this flavor, e.g. biome.
    • versionHigherThanOrEqualTo

      public static boolean versionHigherThanOrEqualTo(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.
      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,