Record Class DiagnosticHostPolicy.Endpoint
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.DiagnosticHostPolicy.Endpoint
- Enclosing class:
- DiagnosticHostPolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressHexrecord component.booleanassisted()assisted(int family, long candidateRevision) longReturns the value of thecandidateRevisionrecord component.final booleanIndicates whether some other object is "equal to" this one.intfamily()Returns the value of thefamilyrecord component.from(DiagnosticAdmissionCodec.Claims claims) final inthashCode()Returns a hash code value for this object.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Endpoint
Creates an instance of aEndpointrecord class.- Parameters:
family- the value for thefamilyrecord componentaddressHex- the value for theaddressHexrecord componentport- the value for theportrecord componentcandidateRevision- the value for thecandidateRevisionrecord component
-
-
Method Details
-
assisted
-
assisted
public boolean assisted() -
from
-
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 '=='. -
family
public int family()Returns the value of thefamilyrecord component.- Returns:
- the value of the
familyrecord component
-
addressHex
Returns the value of theaddressHexrecord component.- Returns:
- the value of the
addressHexrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
candidateRevision
public long candidateRevision()Returns the value of thecandidateRevisionrecord component.- Returns:
- the value of the
candidateRevisionrecord component
-