Record Class MEVersion
java.lang.Object
java.lang.Record
com.io7m.montarre.adoptium.internal.MEVersion
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbuild()Returns the value of thebuildrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmajor()Returns the value of themajorrecord component.intminor()Returns the value of theminorrecord component.Returns the value of theopenjdkVersionrecord component.optional()Returns the value of theoptionalrecord component.intsecurity()Returns the value of thesecurityrecord component.semver()Returns the value of thesemverrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MEVersion
public MEVersion(int build, int major, int minor, int security, String openjdkVersion, String semver, String optional) Creates an instance of aMEVersionrecord class.- Parameters:
build- the value for thebuildrecord componentmajor- the value for themajorrecord componentminor- the value for theminorrecord componentsecurity- the value for thesecurityrecord componentopenjdkVersion- the value for theopenjdkVersionrecord componentsemver- the value for thesemverrecord componentoptional- the value for theoptionalrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
build
public int build()Returns the value of thebuildrecord component.- Returns:
- the value of the
buildrecord component
-
major
public int major()Returns the value of themajorrecord component.- Returns:
- the value of the
majorrecord component
-
minor
public int minor()Returns the value of theminorrecord component.- Returns:
- the value of the
minorrecord component
-
security
public int security()Returns the value of thesecurityrecord component.- Returns:
- the value of the
securityrecord component
-
openjdkVersion
Returns the value of theopenjdkVersionrecord component.- Returns:
- the value of the
openjdkVersionrecord component
-
semver
Returns the value of thesemverrecord component.- Returns:
- the value of the
semverrecord component
-
optional
Returns the value of theoptionalrecord component.- Returns:
- the value of the
optionalrecord component
-