Record Class ARI1VersionQualifier
java.lang.Object
java.lang.Record
com.io7m.aradine.instrument.spi1.ARI1VersionQualifier
- Record Components:
text- The qualifier text
- All Implemented Interfaces:
Comparable<ARI1VersionQualifier>
public record ARI1VersionQualifier(String text)
extends Record
implements Comparable<ARI1VersionQualifier>
A version number qualifier.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ARI1VersionQualifier other) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantext()Returns the value of thetextrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ARI1VersionQualifier
A version number qualifier.- Parameters:
text- The qualifier text
-
-
Method Details
-
isSnapshot
public boolean isSnapshot()- Returns:
trueif this version qualifier denotes a snapshot version
-
compareTo
- Specified by:
compareToin interfaceComparable<ARI1VersionQualifier>
-
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). -
text
-