Record Class RunningContainer
java.lang.Object
java.lang.Record
io.quarkus.deployment.dev.devservices.RunningContainer
- Record Components:
containerInfo- The container information.env- The container environment variables.
Represents a running container.
-
Constructor Summary
ConstructorsConstructorDescriptionRunningContainer(ContainerInfo containerInfo, Map<String, String> env) Creates an instance of aRunningContainerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerInforecord component.env()Returns the value of theenvrecord component.final booleanIndicates whether some other object is "equal to" this one.getPortMapping(int port) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RunningContainer
Creates an instance of aRunningContainerrecord class.- Parameters:
containerInfo- the value for thecontainerInforecord componentenv- the value for theenvrecord component
-
-
Method Details
-
getPortMapping
-
tryGetEnv
-
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). -
containerInfo
Returns the value of thecontainerInforecord component.- Returns:
- the value of the
containerInforecord component
-
env
Returns the value of theenvrecord component.- Returns:
- the value of the
envrecord component
-