Record Class ScalaDependency.Builtin
java.lang.Object
java.lang.Record
xyz.janboerman.scalaloader.paper.plugin.description.ScalaDependency.Builtin
- All Implemented Interfaces:
IScalaVersion, ScalaDependency
- Enclosing interface:
ScalaDependency
public static record ScalaDependency.Builtin(ScalaVersion scalaVersion)
extends Record
implements ScalaDependency
Scala version defined using annotation @Scala(version = ScalaVersion.X_Y_Z)
-
Nested Class Summary
Nested classes/interfaces inherited from interface ScalaDependency
ScalaDependency.Builtin, ScalaDependency.Custom, ScalaDependency.YamlDefinedModifier and TypeInterfaceDescriptionstatic final recordScala version defined using annotation @Scala(version = ScalaVersion.X_Y_Z)static final recordScala version defined using annotation @CustomScalastatic final recordScala version defined in the plugin.yml under the "scala-version" key. -
Constructor Summary
ConstructorsConstructorDescriptionBuiltin(ScalaVersion scalaVersion) Creates an instance of aBuiltinrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Get the version string for this version of Scala.final inthashCode()Returns a hash code value for this object.Returns the value of thescalaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Builtin
Creates an instance of aBuiltinrecord class.- Parameters:
scalaVersion- the value for thescalaVersionrecord component
-
-
Method Details
-
getVersionString
Description copied from interface:IScalaVersionGet the version string for this version of Scala.- Specified by:
getVersionStringin interfaceIScalaVersion- Specified by:
getVersionStringin interfaceScalaDependency- Returns:
- the version string
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
scalaVersion
Returns the value of thescalaVersionrecord component.- Returns:
- the value of the
scalaVersionrecord component
-