Record Class PortMapping
java.lang.Object
java.lang.Record
de.gematik.test.tiger.testenvmgr.servers.PortMapping
Represents a port mapping from host to docker container
-
Constructor Summary
ConstructorsConstructorDescriptionPortMapping(Integer hostPort, Integer dockerPort) Creates an instance of aPortMappingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedockerPortrecord component.final booleanIndicates whether some other object is "equal to" this one.static PortMappingfromPortMappingString(String dockerComposePortMapping) final inthashCode()Returns a hash code value for this object.hostPort()Returns the value of thehostPortrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PortMapping
Creates an instance of aPortMappingrecord class.- Parameters:
hostPort- the value for thehostPortrecord componentdockerPort- the value for thedockerPortrecord component
-
-
Method Details
-
fromPortMappingString
-
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). -
hostPort
Returns the value of thehostPortrecord component.- Returns:
- the value of the
hostPortrecord component
-
dockerPort
Returns the value of thedockerPortrecord component.- Returns:
- the value of the
dockerPortrecord component
-