Record Class DockerComposeOrigin
java.lang.Object
java.lang.Record
org.springframework.boot.docker.compose.core.DockerComposeOrigin
- Record Components:
composeFile- docker compose fileserviceName- name of the docker compose service
- All Implemented Interfaces:
org.springframework.boot.origin.Origin
public record DockerComposeOrigin(DockerComposeFile composeFile, String serviceName)
extends Record
implements org.springframework.boot.origin.Origin
An origin which points to a service defined in docker compose.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDockerComposeOrigin(DockerComposeFile composeFile, String serviceName) Creates an instance of aDockerComposeOriginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomposeFilerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theserviceNamerecord component.toString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.boot.origin.Origin
getParent
-
Constructor Details
-
DockerComposeOrigin
Creates an instance of aDockerComposeOriginrecord class.- Parameters:
composeFile- the value for thecomposeFilerecord componentserviceName- the value for theserviceNamerecord 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 thecomposeFilerecord component.- Returns:
- the value of the
composeFilerecord component
-
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-