public class ResourceConsumerId extends Object
| Modifier | Constructor and Description | 
|---|---|
| protected  | ResourceConsumerId() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | consumerClass()Returns class name of the consumer. | 
| boolean | equals(Object o) | 
| int | hashCode() | 
| boolean | isClassOf(Class<?> cls)Checks if the consumer is an instance of given class. | 
| static <T extends ResourceConsumer> | of(long value,
  Class<T> cls)Creates ResourceConsumerId from given value and class. | 
| static <T extends Identifier<Long> & ResourceConsumer> | of(T id)Creates ResourceConsumerId instance from Identifier object. | 
| long | value()Returns ID value. | 
public boolean isClassOf(Class<?> cls)
cls - class objectpublic String consumerClass()
public long value()
public static <T extends ResourceConsumer> ResourceConsumerId of(long value, Class<T> cls)
T - resource consumer class typevalue - ID value unique within the given classcls - class of ResourceConsumer implementationpublic static <T extends Identifier<Long> & ResourceConsumer> ResourceConsumerId of(T id)
T - resource consumer class typeid - identifier object backed by Long value