Record Class PreStartableTCIFactory.StartingInfra<I>
java.lang.Object
java.lang.Record
software.xdev.tci.factory.prestart.PreStartableTCIFactory.StartingInfra<I>
- Enclosing class:
- PreStartableTCIFactory<C extends org.testcontainers.containers.GenericContainer<C>,
I extends TCI<C>>
protected static record PreStartableTCIFactory.StartingInfra<I>(I infra, CompletableFuture<Void> startFuture, boolean requiresNetworkConnect)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionStartingInfra(I infra, CompletableFuture<Void> startFuture, boolean requiresNetworkConnect) Creates an instance of aStartingInfrarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.infra()Returns the value of theinfrarecord component.booleanReturns the value of therequiresNetworkConnectrecord component.Returns the value of thestartFuturerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StartingInfra
Creates an instance of aStartingInfrarecord class.- Parameters:
infra- the value for theinfrarecord componentstartFuture- the value for thestartFuturerecord componentrequiresNetworkConnect- the value for therequiresNetworkConnectrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
infra
Returns the value of theinfrarecord component.- Returns:
- the value of the
infrarecord component
-
startFuture
Returns the value of thestartFuturerecord component.- Returns:
- the value of the
startFuturerecord component
-
requiresNetworkConnect
public boolean requiresNetworkConnect()Returns the value of therequiresNetworkConnectrecord component.- Returns:
- the value of the
requiresNetworkConnectrecord component
-