Record Class DockerComposeOrigin
java.lang.Object
java.lang.Record
org.springframework.boot.docker.compose.core.DockerComposeOrigin
- Record Components:
composeFile
- the Docker Compose fileserviceName
- name of the Docker Compose service
- All Implemented Interfaces:
Origin
public record DockerComposeOrigin(DockerComposeFile composeFile, String serviceName)
extends Record
implements Origin
An origin which points to a service defined in Docker Compose.
- Since:
- 3.1.0
- Author:
- Moritz Halbritter, Andy Wilkinson
-
Constructor Summary
ConstructorsConstructorDescriptionDockerComposeOrigin
(DockerComposeFile composeFile, String serviceName) Creates an instance of aDockerComposeOrigin
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomposeFile
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theserviceName
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
DockerComposeOrigin
Creates an instance of aDockerComposeOrigin
record class.- Parameters:
composeFile
- the value for thecomposeFile
record componentserviceName
- the value for theserviceName
record component
-
-
Method Details
-
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)
. -
composeFile
Returns the value of thecomposeFile
record component.- Returns:
- the value of the
composeFile
record component
-
serviceName
Returns the value of theserviceName
record component.- Returns:
- the value of the
serviceName
record component
-