Package org.ametys.plugins.mobileapp
Record Class PushNotificationManager.TokenInfo
java.lang.Object
java.lang.Record
org.ametys.plugins.mobileapp.PushNotificationManager.TokenInfo
- Record Components:
token
- the Expo tokenuser
- the user identity as a string to be serializable
- All Implemented Interfaces:
Serializable
- Enclosing class:
PushNotificationManager
public static record PushNotificationManager.TokenInfo(String token, String user)
extends Record
implements Serializable
Association between an expo token and its associated user
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.token()
Returns the value of thetoken
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
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
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)
. -
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-