Code example for Vector

Methods: isEmpty

0
        return true; 
    } 
 
    @Override 
    public boolean isEmpty() { 
        return (mFiles == null || mFiles.isEmpty());
    } 
 
    /** 
     * Change the adapted directory for a new one 
     * @param directory                 New file to adapt. Can be NULL, meaning "no content to adapt". 
     * @param updatedStorageManager     Optional updated storage manager; used to replace mStorageManager if is different (and not NULL) 
     */ 
    public void swapDirectory(OCFile directory, DataStorageManager updatedStorageManager) {
        mFile = directory;
        if (updatedStorageManager != null && updatedStorageManager != mStorageManager) {
            mStorageManager = updatedStorageManager;
            mAccount = AccountUtils.getCurrentOwnCloudAccount(mContext);
        } 
        if (mStorageManager != null) {