@Beta public final class IntentId extends Identifier<java.lang.Long> implements ResourceConsumer
This class is immutable.
identifier
Modifier and Type | Method and Description |
---|---|
ResourceConsumerId |
consumerId()
Returns ID of this consumer.
|
long |
fingerprint()
Returns the backing value.
|
java.lang.String |
toString()
Returns a string representation of a DeviceKeyId.
|
static IntentId |
valueOf(long value)
Creates an intent identifier from the specified long representation.
|
static IntentId |
valueOf(java.lang.String id)
Creates an intent identifier from the specified String representation.
|
equals, hashCode, id
public static IntentId valueOf(long value)
value
- long valuepublic static IntentId valueOf(java.lang.String id)
id
- hexadecimal String prefixed with 0xpublic long fingerprint()
public java.lang.String toString()
Identifier
toString
in class Identifier<java.lang.Long>
public ResourceConsumerId consumerId()
ResourceConsumer
consumerId
in interface ResourceConsumer