protected abstract static class AbstractChartWriter.Context extends Object
Modifier and Type | Method and Description |
---|---|
abstract boolean |
containsKey(Object key)
Returns
true if this AbstractChartWriter.Context implementation
contains an object indexed under an Object equal to the supplied key . |
abstract <T> T |
get(Object key,
Class<T> type)
Returns the object indexed under the supplied
key , if
any, cast to the proper
Class . |
abstract void |
put(Object key,
Object value)
Stores the supplied
value under the supplied key . |
abstract void |
remove(Object key)
|
public abstract <T> T get(Object key, Class<T> type)
key
, if
any, cast to the proper
Class
.
Implementations of this method may return null
.
T
- the type of object expectedkey
- the key under which something is hopefully stored;
may be null
type
- the Class
to cast the result to; must not
be null
null
NullPointerException
- if type
is null
put(Object, Object)
public abstract void put(Object key, Object value)
value
under the supplied key
.key
- the key under which the supplied value
will
be stored; may be null
value
- the object to store; may be null
get(Object, Class)
public abstract boolean containsKey(Object key)
true
if this AbstractChartWriter.Context
implementation
contains an object indexed under an Object
equal to the supplied key
.key
- the key in question; may be null
true
if this AbstractChartWriter.Context
implementation
contains an object indexed under an Object
equal to the supplied key
;
false
otherwiseCopyright © 2017–2018, microBean. All rights reserved.