public interface IConfigKey
Config key interface.
Key must implement getKeyString() method to
provide key string in properties file.
public enum SelfConfig implements IConfigKey {
CONFIG1("str"),
CONFIG2("bool"),
CONFIG3("num");
<p></p>
private final String key;
<p></p>
SelfConfig(String key) {
this.key = key;
}
<p></p>
public String getKeyString() {
return key;
}
}
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getKeyString() |
String getKeyString()
Copyright © 2015. All rights reserved.