Record Class StatelessAdmissionValidator.TicketKey
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.admission.StatelessAdmissionValidator.TicketKey
- Enclosing class:
- StatelessAdmissionValidator
-
Constructor Summary
Constructors -
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.keyId()Returns the value of thekeyIdrecord component.longReturns the value of thenotBeforerecord component.longReturns the value of theretireAfterrecord component.secret()Returns the value of thesecretrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TicketKey
-
TicketKey
Creates an instance of aTicketKeyrecord class.- Parameters:
keyId- the value for thekeyIdrecord componentsecret- the value for thesecretrecord componentnotBefore- the value for thenotBeforerecord componentretireAfter- the value for theretireAfterrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
keyId
Returns the value of thekeyIdrecord component.- Returns:
- the value of the
keyIdrecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-
notBefore
public long notBefore()Returns the value of thenotBeforerecord component.- Returns:
- the value of the
notBeforerecord component
-
retireAfter
public long retireAfter()Returns the value of theretireAfterrecord component.- Returns:
- the value of the
retireAfterrecord component
-