Record Class DeviceTokenStore.Issued

java.lang.Object
java.lang.Record
com.iizix.server.user.DeviceTokenStore.Issued
Record Components:
deviceID - The device identifier of the row.
token - The token, for the device.
expires - When the row expires unless used, in epoch milliseconds.
Enclosing class:
DeviceTokenStore

public static record DeviceTokenStore.Issued(String deviceID, String token, long expires) extends Record
A token as issued. The token is known here for the last time.
Author:
Christopher Mindus
  • Constructor Details

    • Issued

      public Issued(String deviceID, String token, long expires)
      Creates an instance of a Issued record class.
      Parameters:
      deviceID - the value for the deviceID record component
      token - the value for the token record component
      expires - the value for the expires record component
  • Method Details

    • toString

      public String toString()
      Describes this instance without its token.
      Specified by:
      toString in class Record
      Returns:
      The description.
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • deviceID

      public String deviceID()
      Returns the value of the deviceID record component.
      Returns:
      the value of the deviceID record component
    • token

      public String token()
      Returns the value of the token record component.
      Returns:
      the value of the token record component
    • expires

      public long expires()
      Returns the value of the expires record component.
      Returns:
      the value of the expires record component