Package co.elastic.gradle.utils.docker
Record Class UnchangingContainerReference
java.lang.Object
java.lang.Record
co.elastic.gradle.utils.docker.UnchangingContainerReference
- All Implemented Interfaces:
Serializable
public record UnchangingContainerReference(String repository, String tag, String digest)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnchangingContainerReference(String repository, String tag, String digest) Creates an instance of aUnchangingContainerReferencerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondigest()Returns the value of thedigestrecord component.final booleanIndicates whether some other object is "equal to" this one.getTag()final inthashCode()Returns a hash code value for this object.Returns the value of therepositoryrecord component.tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UnchangingContainerReference
Creates an instance of aUnchangingContainerReferencerecord class.- Parameters:
repository- the value for therepositoryrecord componenttag- the value for thetagrecord componentdigest- the value for thedigestrecord component
-
-
Method Details
-
getRepository
-
getTag
-
getDigest
-
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). -
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-
digest
Returns the value of thedigestrecord component.- Returns:
- the value of the
digestrecord component
-