Class ScalaCompatMap<SV extends IScalaVersion>

java.lang.Object
xyz.janboerman.scalaloader.plugin.ScalaCompatMap<SV>

public class ScalaCompatMap<SV extends IScalaVersion> extends Object
  • Constructor Details

    • ScalaCompatMap

      public ScalaCompatMap()
  • Method Details

    • add

      public void add(SV scalaVersion)
      Registers a Scala version configuration to this ScalaCompatMap.
      Parameters:
      scalaVersion - the scala configuration
    • getLatestVersion

      public SV getLatestVersion(PluginScalaVersion scalaVersion)
      Looks up the latest version of Scala that is binary compatible with scalaVersion.
      Parameters:
      scalaVersion - the version of Scala
      Returns:
      the latest compatible version of Scala
    • getLatestVersion

      public SV getLatestVersion(String scalaVersion)
      Looks up the latest version of Scala that is binary compatible with scalaVersion.
      Parameters:
      scalaVersion - the version of Scala
      Returns:
      the latest compatible version of Scala
    • toString

      public String toString()
      Overrides:
      toString in class Object