public interface Properties
| 限定符和类型 | 接口和说明 |
|---|---|
static interface |
Properties.Key<T> |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Set<java.lang.String> |
allCaches() |
java.util.Set<Properties.Key> |
allProperties() |
void |
clearCache() |
<T> com.google.common.base.Optional<T> |
get(Properties.Key<T> location)
Get the property value at certain location.
|
<T> T |
getCache(java.lang.String id) |
<T> void |
put(Properties.Key<T> location,
T value)
Put a value as a property.
|
void |
putCache(java.lang.String id,
java.lang.Object cache) |
<T> void |
using(Properties.Key<T> location,
VarSync<T> sync)
Using a sync var for this key as the property.
|
java.util.Set<VarSync> |
usingResource() |
<T> void using(Properties.Key<T> location, VarSync<T> sync)
This value will be auto synced.
T - Typelocation - The keysync - Sync reference<T> void put(Properties.Key<T> location, T value)
Notice that this won't be sync, and this value is immutable to client.
<T> com.google.common.base.Optional<T> get(Properties.Key<T> location)
java.util.Set<Properties.Key> allProperties()
<T> T getCache(java.lang.String id)
void putCache(java.lang.String id,
java.lang.Object cache)
void clearCache()
java.util.Set<java.lang.String> allCaches()
java.util.Set<VarSync> usingResource()