Record Class ComponentLockfile
java.lang.Object
java.lang.Record
co.elastic.gradle.dockercomponent.lockfile.ComponentLockfile
-
Constructor Summary
ConstructorsConstructorDescriptionComponentLockfile(Map<co.elastic.gradle.utils.Architecture, co.elastic.gradle.utils.docker.UnchangingContainerReference> images) Creates an instance of aComponentLockfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> final inthashCode()Returns a hash code value for this object.Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> images()Returns the value of theimagesrecord component.static ComponentLockfilefinal StringtoString()Returns a string representation of this record class.static voidwrite(ComponentLockfile lockfile, Writer writer)
-
Constructor Details
-
ComponentLockfile
public ComponentLockfile(Map<co.elastic.gradle.utils.Architecture, co.elastic.gradle.utils.docker.UnchangingContainerReference> images) Creates an instance of aComponentLockfilerecord class.- Parameters:
images- the value for theimagesrecord component
-
-
Method Details
-
getImages
@Input public Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> getImages() -
parse
- Throws:
IOException
-
write
- Throws:
IOException
-
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). -
images
public Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> images()Returns the value of theimagesrecord component.- Returns:
- the value of the
imagesrecord component
-