Record Class ServicePortNameAndNumber
java.lang.Object
java.lang.Record
org.springframework.cloud.kubernetes.commons.discovery.ServicePortNameAndNumber
-
Constructor Summary
ConstructorsConstructorDescriptionServicePortNameAndNumber(Integer portNumber, String portName) Creates an instance of aServicePortNameAndNumberrecord 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.portName()Returns the value of theportNamerecord component.Returns the value of theportNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ServicePortNameAndNumber
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
portNumber
Returns the value of theportNumberrecord component.- Returns:
- the value of the
portNumberrecord component
-
portName
Returns the value of theportNamerecord component.- Returns:
- the value of the
portNamerecord component
-