Record Class PreStartableTCIFactory.DirectNetworkAttachInfo
java.lang.Object
java.lang.Record
software.xdev.tci.factory.prestart.PreStartableTCIFactory.DirectNetworkAttachInfo
- Enclosing class:
- PreStartableTCIFactory<C extends org.testcontainers.containers.GenericContainer<C>,
I extends TCI<C>>
-
Constructor Summary
ConstructorsConstructorDescriptionDirectNetworkAttachInfo(org.testcontainers.containers.Network network, List<String> aliases) Creates an instance of aDirectNetworkAttachInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.org.testcontainers.containers.Networknetwork()Returns the value of thenetworkrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DirectNetworkAttachInfo
Creates an instance of aDirectNetworkAttachInforecord class.- Parameters:
network- the value for thenetworkrecord componentaliases- the value for thealiasesrecord 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). -
network
public org.testcontainers.containers.Network network()Returns the value of thenetworkrecord component.- Returns:
- the value of the
networkrecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-