Class UserDevice


  • public final class UserDevice
    extends java.lang.Object
    Metadata about a user device.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete()  
      boolean equals​(java.lang.Object obj)  
      protected void finalize()  
      java.util.Date getCreated()
      Get the time the device was last updated
      DeviceId getId()
      Get the unique id for the device
      java.util.Date getLastUpdated()
      Get the time the device was created
      java.util.Optional<DeviceName> getName()
      Get the devices optional non-unique readable name
      int hashCode()  
      boolean isCurrentDevice()
      True if this device instance is the one that was used to make the API request
      • Methods inherited from class java.lang.Object

        clone, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getId

        public final DeviceId getId()
        Get the unique id for the device
      • getName

        public final java.util.Optional<DeviceName> getName()
        Get the devices optional non-unique readable name
      • getLastUpdated

        public final java.util.Date getLastUpdated()
        Get the time the device was created
      • getCreated

        public final java.util.Date getCreated()
        Get the time the device was last updated
      • isCurrentDevice

        public final boolean isCurrentDevice()
        True if this device instance is the one that was used to make the API request
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • delete

        public void delete()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object