Record Class DiagnosticAdmissionCodec.Admission
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.diagnostic.DiagnosticAdmissionCodec.Admission
- Enclosing class:
- DiagnosticAdmissionCodec
public static record DiagnosticAdmissionCodec.Admission(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, DiagnosticAdmissionCodec.Credentials credentials, String remoteUfrag)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAdmission(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, DiagnosticAdmissionCodec.Credentials credentials, String remoteUfrag) Creates an instance of aAdmissionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclaims()Returns the value of theclaimsrecord component.context()Returns the value of thecontextrecord component.Returns the value of thecredentialsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theremoteUfragrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Admission
public Admission(DiagnosticAdmissionCodec.Context context, DiagnosticAdmissionCodec.Claims claims, DiagnosticAdmissionCodec.Credentials credentials, String remoteUfrag) Creates an instance of aAdmissionrecord class.- Parameters:
context- the value for thecontextrecord componentclaims- the value for theclaimsrecord componentcredentials- the value for thecredentialsrecord componentremoteUfrag- the value for theremoteUfragrecord 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). -
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
claims
Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
credentials
Returns the value of thecredentialsrecord component.- Returns:
- the value of the
credentialsrecord component
-
remoteUfrag
Returns the value of theremoteUfragrecord component.- Returns:
- the value of the
remoteUfragrecord component
-