Record Class LocalHostPortOccupant
java.lang.Object
java.lang.Record
com.cloudforge.core.local.LocalHostPortOccupant
-
Constructor Summary
ConstructorsConstructorDescriptionLocalHostPortOccupant(String stackName, int hostPort, String detail) Creates an instance of aLocalHostPortOccupantrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthostPort()Returns the value of thehostPortrecord component.Returns the value of thestackNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LocalHostPortOccupant
Creates an instance of aLocalHostPortOccupantrecord class.- Parameters:
stackName- the value for thestackNamerecord componenthostPort- the value for thehostPortrecord componentdetail- the value for thedetailrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
stackName
Returns the value of thestackNamerecord component.- Returns:
- the value of the
stackNamerecord component
-
hostPort
public int hostPort()Returns the value of thehostPortrecord component.- Returns:
- the value of the
hostPortrecord component
-
detail
Returns the value of thedetailrecord component.- Returns:
- the value of the
detailrecord component
-