T
- Service type.public final class ServiceKey<T> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Resource name or
null . |
Class<T> |
getType()
Resource type.
|
int |
hashCode() |
static <T> ServiceKey<T> |
key(Class<T> type)
Creates a resource key.
|
static <T> ServiceKey<T> |
key(Class<T> type,
String name)
Creates a named resource key.
|
String |
toString() |
@Nonnull public static <T> ServiceKey<T> key(@Nonnull Class<T> type)
T
- Type.type
- Resource type.Copyright © 2022. All rights reserved.