Record Class ScalaDependency.Custom
java.lang.Object
java.lang.Record
xyz.janboerman.scalaloader.paper.plugin.description.ScalaDependency.Custom
- All Implemented Interfaces:
IScalaVersion, ScalaDependency
- Enclosing interface:
ScalaDependency
-
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
Constructors -
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.Returns the value of thesha1hashesrecord component.final StringtoString()Returns a string representation of this record class.urls()Returns the value of theurlsrecord component.
-
Constructor Details
-
Custom
Creates an instance of aCustomrecord class.- Parameters:
scalaVersion- the value for thescalaVersionrecord componenturls- the value for theurlsrecord componentsha1hashes- the value for thesha1hashesrecord 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
-
urls
-
sha1hashes
-