public class ConfigKey extends Object
Use this to deserialize any field named config:key via Config.
Example use with Expose and ReflectionSerializer:
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigKey.ConfigKeySerializer |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asObject(Class<T> type)
Get this object as another type.
|
<T> T |
asObject(String subPath,
Class<T> type)
Get the value of a sub path to this key.
|
<T> Value<T> |
get(String subPath,
Class<T> type)
Get the value of a sub path to this key.
|
public static final String NAME
public <T> Value<T> get(String subPath, Class<T> type)
subPath - type - public <T> T asObject(String subPath, Class<T> type)
subPath - type - public <T> T asObject(Class<T> type)
type - Copyright © 2017. All rights reserved.