Enum Class ScalaVersion
- All Implemented Interfaces:
Serializable
,Comparable<ScalaVersion>
,Constable
An enumeration of some common recent versions of Scala.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.provided for those who wish to use it, but the Scala 2.11 series has been unsupported for a while now. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScalaVersion
fromVersionString
(String string) static ScalaVersion
Deprecated.Starting from Scala 3, the runtime is larger than just a standard and reflection library.Deprecated.Starting from Scala 3, the runtime is larger than just a standard and reflection library.getUrls()
Get the download urls for some of the Scala runtime jar files.Get the version of Scala.boolean
isStable()
Whether this version is a stable version, or a development/snapshot version.toString()
Get a string representation of this ScalaVersion.static ScalaVersion
Returns the enum constant of this class with the specified name.static ScalaVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
v2_11_12
Deprecated.provided for those who wish to use it, but the Scala 2.11 series has been unsupported for a while now. -
v2_12_6
-
v2_12_7
-
v2_12_8
-
v2_12_9
-
v2_12_10
-
v2_12_11
-
v2_12_12
-
v2_12_13
-
v2_12_14
-
v2_12_15
-
v2_12_16
-
v2_12_17
-
v2_12_18
-
v2_12_19
-
v2_12_20
-
v2_13_0
-
v2_13_1
-
v2_13_2
-
v2_13_3
-
v2_13_4
-
v2_13_5
-
v2_13_6
-
v2_13_7
-
v2_13_8
-
v2_13_9
-
v2_13_10
-
v2_13_11
-
v2_13_12
-
v2_13_13
-
v2_13_14
-
v3_0_0
-
v3_0_1
-
v3_0_2
-
v3_1_0
-
v3_1_1
-
v3_1_2
-
v3_1_3
-
v3_2_0
-
v3_2_1
-
v3_2_2
-
v3_3_0
-
v3_3_1
-
v3_3_2
-
v3_3_3
-
v3_4_0
-
v3_4_1
-
v3_4_2
-
v3_4_3
-
v3_5_0
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
fromVersionString
-
getVersion
Get the version of Scala.- Returns:
- the version
-
getLatest_2_13
-
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.Starting from Scala 3, the runtime is larger than just a standard and reflection library. UsegetUrls()
instead.Get a url on which the standard library is hosted.- Returns:
- a url, usually to some maven repository
-
getScalaReflectUrl
Deprecated.Starting from Scala 3, the runtime is larger than just a standard and reflection library. UsegetUrls()
instead.Get a url on which the reflection library is hosted.- Returns:
- a url, usually to some maven repository
-
toString
Get a string representation of this ScalaVersion.- Overrides:
toString
in classEnum<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.
-