Enum Class ScalaVersion

java.lang.Object
java.lang.Enum<ScalaVersion>
xyz.janboerman.scalaloader.plugin.description.ScalaVersion
All Implemented Interfaces:
Serializable, Comparable<ScalaVersion>, Constable

public enum ScalaVersion extends Enum<ScalaVersion>
An enumeration of some common recent versions of Scala.
  • Enum Constant Details

  • Method Details

    • values

      public static ScalaVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ScalaVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromVersionString

      public static ScalaVersion fromVersionString(String string)
    • getVersion

      public String getVersion()
      Get the version of Scala.
      Returns:
      the version
    • getLatest_2_13

      public static ScalaVersion getLatest_2_13()
    • getUrls

      public Map<String,String> getUrls()

      Get the download urls for some of the Scala runtime jar files. Possible keys in this map are a subset of the following constants:

      Returns:
      a map containing the urls as values
    • getScalaLibraryUrl

      @Deprecated public String getScalaLibraryUrl()
      Deprecated.
      Starting from Scala 3, the runtime is larger than just a standard and reflection library. Use getUrls() instead.
      Get a url on which the standard library is hosted.
      Returns:
      a url, usually to some maven repository
    • getScalaReflectUrl

      @Deprecated public String getScalaReflectUrl()
      Deprecated.
      Starting from Scala 3, the runtime is larger than just a standard and reflection library. Use getUrls() instead.
      Get a url on which the reflection library is hosted.
      Returns:
      a url, usually to some maven repository
    • toString

      public String toString()
      Get a string representation of this ScalaVersion.
      Overrides:
      toString in class Enum<ScalaVersion>
      Returns:
      the scala version string
    • isStable

      public boolean isStable()
      Whether this version is a stable version, or a development/snapshot version.
      Returns:
      true if the version is stable, otherwise false.