Record Class MERelease
java.lang.Object
java.lang.Record
com.io7m.montarre.adoptium.internal.MERelease
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbinaries()Returns the value of thebinariesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thereleaseNamerecord component.Returns the value of thereleaseTyperecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theversionDatarecord component.
-
Constructor Details
-
MERelease
public MERelease(String releaseName, String releaseType, MEVersion versionData, List<MEBinary> binaries) Creates an instance of aMEReleaserecord class.- Parameters:
releaseName- the value for thereleaseNamerecord componentreleaseType- the value for thereleaseTyperecord componentversionData- the value for theversionDatarecord componentbinaries- the value for thebinariesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
releaseName
Returns the value of thereleaseNamerecord component.- Returns:
- the value of the
releaseNamerecord component
-
releaseType
Returns the value of thereleaseTyperecord component.- Returns:
- the value of the
releaseTyperecord component
-
versionData
Returns the value of theversionDatarecord component.- Returns:
- the value of the
versionDatarecord component
-
binaries
Returns the value of thebinariesrecord component.- Returns:
- the value of the
binariesrecord component
-