Record Class VersionMeta.JavaVersion
java.lang.Object
java.lang.Record
com.cleanroommc.gradle.api.schema.VersionMeta.JavaVersion
- Enclosing class:
VersionMeta
-
Constructor Summary
ConstructorsConstructorDescriptionJavaVersion(String component, int majorVersion) Creates an instance of aJavaVersionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themajorVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
JavaVersion
Creates an instance of aJavaVersionrecord class.- Parameters:
component- the value for thecomponentrecord componentmajorVersion- the value for themajorVersionrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
majorVersion
public int majorVersion()Returns the value of themajorVersionrecord component.- Returns:
- the value of the
majorVersionrecord component
-