public final class GlobalProperties
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalProperties.Keys
Global property keys
|
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
get(java.lang.String key)
Get a value from the blackboard and duck-type it to the specified type
|
static <T> T |
get(java.lang.String key,
T defaultValue)
Get the value from the blackboard but return defaultValue if the
specified key is not set.
|
static java.lang.String |
getString(java.lang.String key,
java.lang.String defaultValue)
Get a string from the blackboard, returns default value if not set or
null.
|
static void |
put(java.lang.String key,
java.lang.Object value)
Put the specified value onto the blackboard
|
public static <T> T get(java.lang.String key)
T - duck typekey - blackboard keypublic static void put(java.lang.String key,
java.lang.Object value)
key - blackboard keyvalue - new valuepublic static <T> T get(java.lang.String key,
T defaultValue)
T - duck typekey - blackboard keydefaultValue - value to return if the key is not set or is nullpublic static java.lang.String getString(java.lang.String key,
java.lang.String defaultValue)
key - blackboard keydefaultValue - default value to return if the specified key is not
set or is null