Code example for Vector

Methods: elementAt, size

0
        mKeyTypeList.add(keyType);
        return true; 
    } 
 
    public SoftKeyType getKeyType(int typeId) {
        if (typeId < 0 || typeId > mKeyTypeList.size()) return null;
        return mKeyTypeList.elementAt(typeId);
    } 
 
    public void addDefaultKeyIcons(int keyCode, Drawable icon,
            Drawable iconPopup) {
        if (null == icon || null == iconPopup) return;
 
        KeyIconRecord iconRecord = new KeyIconRecord();
        iconRecord.icon = icon;
        iconRecord.iconPopup = iconPopup;
        iconRecord.keyCode = keyCode;
 
        int size = mKeyIconRecords.size();
        int pos = 0;
        while (pos < size) {