Record Class BaseLockfile
java.lang.Object
java.lang.Record
co.elastic.gradle.dockerbase.lockfile.BaseLockfile
- All Implemented Interfaces:
Serializable
public record BaseLockfile(@NotNull Map<co.elastic.gradle.utils.Architecture,Packages> packages, @Nullable Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> image)
extends Record
implements Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBaseLockfile(@NotNull Map<co.elastic.gradle.utils.Architecture, Packages> packages, Map<co.elastic.gradle.utils.Architecture, co.elastic.gradle.utils.docker.UnchangingContainerReference> image) Creates an instance of aBaseLockfilerecord 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> getImage()final inthashCode()Returns a hash code value for this object.Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> image()Returns the value of theimagerecord component.packages()Returns the value of thepackagesrecord component.static BaseLockfilefinal StringtoString()Returns a string representation of this record class.static voidwrite(BaseLockfile lockfile, Writer writer)
-
Constructor Details
-
BaseLockfile
public BaseLockfile(@NotNull @NotNull Map<co.elastic.gradle.utils.Architecture, Packages> packages, @Nullable Map<co.elastic.gradle.utils.Architecture, co.elastic.gradle.utils.docker.UnchangingContainerReference> image) Creates an instance of aBaseLockfilerecord class.- Parameters:
packages- the value for thepackagesrecord componentimage- the value for theimagerecord component
-
-
Method Details
-
getPackages
-
getImage
@Optional public Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> getImage() -
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). -
packages
Returns the value of thepackagesrecord component.- Returns:
- the value of the
packagesrecord component
-
image
@Nullable public Map<co.elastic.gradle.utils.Architecture,co.elastic.gradle.utils.docker.UnchangingContainerReference> image()Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-