Package io.trino.testing.containers
Record Class TestContainers.DockerArchitectureInfo
java.lang.Object
java.lang.Record
io.trino.testing.containers.TestContainers.DockerArchitectureInfo
- Enclosing class:
- TestContainers
public static record TestContainers.DockerArchitectureInfo(TestContainers.DockerArchitecture hostArch, TestContainers.DockerArchitecture imageArch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDockerArchitectureInfo(TestContainers.DockerArchitecture hostArch, TestContainers.DockerArchitecture imageArch) Creates an instance of aDockerArchitectureInforecord 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.hostArch()Returns the value of thehostArchrecord component.Returns the value of theimageArchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DockerArchitectureInfo
public DockerArchitectureInfo(TestContainers.DockerArchitecture hostArch, TestContainers.DockerArchitecture imageArch) Creates an instance of aDockerArchitectureInforecord class.- Parameters:
hostArch- the value for thehostArchrecord componentimageArch- the value for theimageArchrecord 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). -
hostArch
Returns the value of thehostArchrecord component.- Returns:
- the value of the
hostArchrecord component
-
imageArch
Returns the value of theimageArchrecord component.- Returns:
- the value of the
imageArchrecord component
-