类 AbstractChartWriter.Context

    • 方法详细资料

      • get

        public abstract <T> T get​(Object key,
                                  Class<T> type)
        Returns the object indexed under the supplied key, if any, cast to the proper Class.

        Implementations of this method may return null.

        类型参数:
        T - the type of object expected
        参数:
        key - the key under which something is hopefully stored; may be null
        type - the Class to cast the result to; must not be null
        返回:
        the object in question, or null
        抛出:
        NullPointerException - if type is null
        另请参阅:
        put(Object, Object)
      • put

        public abstract void put​(Object key,
                                 Object value)
        Stores the supplied 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)
      • remove

        public abstract void remove​(Object key)
        Removes any object indexed under an Object equal to the supplied key.
        参数:
        key - the key in question; may be null