public interface Context extends Cloneable
限定符和类型 | 方法和说明 |
---|---|
Context |
clear() |
Context |
clone() |
Object |
get(String name) |
Object |
get(String name,
Object dft) |
<T> T |
getAs(Class<T> type,
String name) |
<T> T |
getAs(Class<T> type,
String name,
T dft) |
boolean |
getBoolean(String name) |
boolean |
getBoolean(String name,
boolean dft) |
double |
getDouble(String name) |
double |
getDouble(String name,
double dft) |
float |
getFloat(String name) |
float |
getFloat(String name,
float dft) |
Map<String,Object> |
getInnerMap() |
int |
getInt(String name) |
int |
getInt(String name,
int dft) |
<T> List<T> |
getList(Class<T> classOfT,
String name) |
List<Object> |
getList(String name) |
Map<String,Object> |
getMap(String name) |
String |
getString(String name) |
String |
getString(String name,
String dft) |
boolean |
has(String key) |
boolean |
isEmpty() |
Set<String> |
keys() |
Context |
putAll(Object obj) |
Context |
putAll(String prefix,
Object obj) |
Context |
set(String name,
Object value) |
int |
size() |
boolean has(String key)
Context clear()
int size()
boolean isEmpty()
int getInt(String name)
int getInt(String name, int dft)
boolean getBoolean(String name)
boolean getBoolean(String name, boolean dft)
float getFloat(String name)
float getFloat(String name, float dft)
double getDouble(String name)
double getDouble(String name, double dft)
Context clone()
Copyright © 2017. All rights reserved.