Record Class ARI1JVersion
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.json_data.internal.ARI1JVersion
- Record Components:
major- The major numberminor- The minor numberpatch- The patch numberqualifier- The (possibly empty) qualifier
public record ARI1JVersion(int major, int minor, int patch, Optional<ARI1JVersionQualifier> qualifier)
extends Record
A (semantic) version number.
-
Constructor Summary
ConstructorsConstructorDescriptionARI1JVersion(int major, int minor, int patch, Optional<ARI1JVersionQualifier> qualifier) A (semantic) version number. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.intpatch()Returns the value of thepatchrecord component.Returns the value of thequalifierrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ARI1JVersion
A (semantic) version number.- Parameters:
major- The major numberminor- The minor numberpatch- The patch numberqualifier- The (possibly empty) qualifier
-
-
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. -
major
-
minor
-
patch
-
qualifier
-