Record Class ContainerInfo
java.lang.Object
java.lang.Record
io.quarkus.deployment.dev.devservices.ContainerInfo
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexposedPortsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theimageNamerecord component.labels()Returns the value of thelabelsrecord component.String[]names()Returns the value of thenamesrecord component.networks()Returns the value of thenetworksrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContainerInfo
public ContainerInfo(String id, String[] names, String imageName, String status, Map<String, String[]> networks, Map<String, String> labels, ContainerInfo.ContainerPort[] exposedPorts) Creates an instance of aContainerInforecord class.- Parameters:
id- the value for theidrecord componentnames- the value for thenamesrecord componentimageName- the value for theimageNamerecord componentstatus- the value for thestatusrecord componentnetworks- the value for thenetworksrecord componentlabels- the value for thelabelsrecord componentexposedPorts- the value for theexposedPortsrecord component
-
-
Method Details
-
getShortId
-
formatNames
-
formatNetworks
-
formatPorts
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
names
Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
imageName
Returns the value of theimageNamerecord component.- Returns:
- the value of the
imageNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
networks
Returns the value of thenetworksrecord component.- Returns:
- the value of the
networksrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
exposedPorts
Returns the value of theexposedPortsrecord component.- Returns:
- the value of the
exposedPortsrecord component
-