类 AbstractChartWriter.Context
- java.lang.Object
-
- org.microbean.helm.chart.AbstractChartWriter.Context
-
- 封闭类:
- AbstractChartWriter
protected abstract static class AbstractChartWriter.Context extends Object
A class representing the state of a write operation.- 作者:
- Laird Nelson
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 abstract booleancontainsKey(Object key)Returnstrueif thisAbstractChartWriter.Contextimplementation contains an object indexed under anObjectequal to the suppliedkey.abstract <T> Tget(Object key, Class<T> type)Returns the object indexed under the suppliedkey, if any, cast to the properClass.abstract voidput(Object key, Object value)Stores the suppliedvalueunder the suppliedkey.abstract voidremove(Object key)
-
-
-
方法详细资料
-
get
public abstract <T> T get(Object key, Class<T> type)
Returns the object indexed under the suppliedkey, if any, cast to the properClass.Implementations of this method may return
null.- 类型参数:
T- the type of object expected- 参数:
key- the key under which something is hopefully stored; may benulltype- theClassto cast the result to; must not benull- 返回:
- the object in question, or
null - 抛出:
NullPointerException- iftypeisnull- 另请参阅:
put(Object, Object)
-
put
public abstract void put(Object key, Object value)
Stores the suppliedvalueunder the suppliedkey.- 参数:
key- the key under which the suppliedvaluewill be stored; may benullvalue- the object to store; may benull- 另请参阅:
get(Object, Class)
-
containsKey
public abstract boolean containsKey(Object key)
Returnstrueif thisAbstractChartWriter.Contextimplementation contains an object indexed under anObjectequal to the suppliedkey.- 参数:
key- the key in question; may benull- 返回:
trueif thisAbstractChartWriter.Contextimplementation contains an object indexed under anObjectequal to the suppliedkey;falseotherwise
-
remove
public abstract void remove(Object key)
- 参数:
key- the key in question; may benull
-
-