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
-
Nested Class Summary
Nested classes/interfaces inherited from interface xyz.janboerman.scalaloader.paper.plugin.description.ScalaDependency
ScalaDependency.Builtin, ScalaDependency.Custom, ScalaDependency.YamlDefined
-
Constructor Summary
ConstructorsConstructorDescriptionBuiltin
(ScalaVersion scalaVersion) Creates an instance of aBuiltin
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thescalaVersion
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Builtin
Creates an instance of aBuiltin
record class.- Parameters:
scalaVersion
- the value for thescalaVersion
record component
-
-
Method Details
-
getVersionString
- Specified by:
getVersionString
in interfaceIScalaVersion
- Specified by:
getVersionString
in interfaceScalaDependency
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thescalaVersion
record component.- Returns:
- the value of the
scalaVersion
record component
-