Code example for Vector

Methods: size

0
        return true; 
    } 
 
    @Override 
    public int getCount() { 
        return mFiles != null ? mFiles.size() : 0;
    } 
 
    @Override 
    public Object getItem(int position) {
        if (mFiles == null || mFiles.size() <= position)
            return null; 
        return mFiles.get(position);
    } 
 
    @Override 
    public long getItemId(int position) {
        if (mFiles == null || mFiles.size() <= position)
            return 0; 
        return mFiles.get(position).getFileId();
    }