Record Class OsRelease
java.lang.Object
java.lang.Record
com.yahoo.vespa.hosted.controller.api.integration.deployment.OsRelease
public record OsRelease(com.yahoo.component.Version version, OsRelease.Tag tag, Instant taggedAt)
extends Record
An OS release and its tag.
- Author:
- mpolden
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOsRelease(com.yahoo.component.Version version, OsRelease.Tag tag, Instant taggedAt) Creates an instance of aOsReleaserecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the age of this at given instantfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.tag()The tag of thistaggedAt()Returns the time this was taggedtoString()Returns a string representation of this record class.com.yahoo.component.Versionversion()The version number
-
Constructor Details
-
OsRelease
Creates an instance of aOsReleaserecord class.- Parameters:
version- the value for theversionrecord componenttag- the value for thetagrecord componenttaggedAt- the value for thetaggedAtrecord component
-
-
Method Details
-
version
public com.yahoo.component.Version version()The version number -
tag
The tag of this -
taggedAt
Returns the time this was tagged -
age
Returns the age of this at given instant -
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).
-