Code example for HashMap

Methods: keySet

0
    } 
    /** 
     * @return a set of the keys contained in this QCTimedText object. 
     */ 
    public Set keySet() {
        return mKeyObjectMap.keySet();
    } 
 
    /** 
     * To retrieve the object associated with the key. Caller must make sure 
     * the key is present using the containsKey method otherwise a 
     * RuntimeException will occur. 
     * @param key the key used to retrieve the object. 
     * @return an object. The object could be an instanceof Integer, List, or 
     * any of the helper classes such as TextPos, Justification, and Text. 
     */ 
    public Object getObject(final int key) {
        if (containsKey(key)) {
            return mKeyObjectMap.get(key);
        } 
        return null;