Class IntentId

  • All Implemented Interfaces:
    ResourceConsumer

    @Beta
    public final class IntentId
    extends Identifier<java.lang.Long>
    implements ResourceConsumer
    Intent identifier suitable as an external key.

    This class is immutable.

    • Method Detail

      • valueOf

        public static IntentId valueOf​(long value)
        Creates an intent identifier from the specified long representation.
        Parameters:
        value - long value
        Returns:
        intent identifier
      • valueOf

        public static IntentId valueOf​(java.lang.String id)
        Creates an intent identifier from the specified String representation.
        Parameters:
        id - hexadecimal String prefixed with 0x
        Returns:
        intent identifier
      • fingerprint

        public long fingerprint()
        Returns the backing value.
        Returns:
        the value
      • toString

        public java.lang.String toString()
        Description copied from class: Identifier
        Returns a string representation of a DeviceKeyId.
        Overrides:
        toString in class Identifier<java.lang.Long>
        Returns:
        string