Package org.cloudburstmc.netty.signaling
Record Class ProviderClient.OperatorAction
java.lang.Object
java.lang.Record
org.cloudburstmc.netty.signaling.ProviderClient.OperatorAction
- Enclosing class:
- ProviderClient
public static record ProviderClient.OperatorAction(URI url, String text, long expiresAt)
extends Record
A link the provider offers the host's operator. It may carry a one-time credential: show it, never open or
save it.
-
Constructor Summary
ConstructorsConstructorDescriptionOperatorAction(URI url, String text, long expiresAt) Creates an instance of aOperatorActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.toString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
OperatorAction
Creates an instance of aOperatorActionrecord class.- Parameters:
url- the value for theurlrecord componenttext- the value for thetextrecord componentexpiresAt- the value for theexpiresAtrecord 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 '=='. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
expiresAt
public long expiresAt()Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-