public interface ILicenseContext
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Class<T> clazz)
Returns the property of given class.
|
Object |
get(String key)
Returns the property with given key.
|
Iterable<String> |
getKeys()
Returns the property keys.
|
boolean |
hasKey(Class<?> clazz)
Returns whether the context has such a value.
|
boolean |
hasKey(String key)
Returns whether the context has such a value.
|
<T> T |
remove(Class<T> clazz)
Removes the property of given class.
|
Object |
remove(String key)
Removes the property with given key.
|
<T> void |
set(Class<T> clazz,
T value)
Sets the property.
|
void |
set(String key,
Object value)
Sets the property.
|
Object get(String key)
key - key of propertynull if the property doesn't exist<T> T get(Class<T> clazz)
clazz - type of propertynull if the property doesn't existboolean hasKey(Class<?> clazz)
clazz - the clazz to look for (name is key)true when context has this keyboolean hasKey(String key)
key - the key to look fortrue when context has this keyvoid set(String key, Object value)
key - key of propertyvalue - value<T> void set(Class<T> clazz, T value)
clazz - class of propertyvalue - valueObject remove(String key)
key - key of property<T> T remove(Class<T> clazz)
clazz - class of propertyCopyright © 2014. All rights reserved.