package acr.browser.lightning.activity;

import android.support.annotation.Nullable;

import acr.browser.lightning.browser.BookmarksView;

/**
 * The UI model representing the current folder shown
 * by the {@link BookmarksView}.
 * <p>
 * Created by anthonycr on 5/7/17.
 */
public class BookmarkUiModel {

    @Nullable private String mCurrentFolder;

    public void setCurrentFolder(@Nullable String folder) {
        mCurrentFolder = folder;
    }

    public boolean isRootFolder() {
        return mCurrentFolder == null;
    }

    @Nullable
    public String getCurrentFolder() {
        return mCurrentFolder;
    }

}

@@ -355,185 +355,646 @@
     
-public void setCurrentFolder(@Nullable String folder) %7B%0A        mCurrentFolder = folder;%0A    %7D%0A%0A    public boolean isRootFolder() %7B%0A        return mCurrentFolder == null;%0A    %7D%0A
+/**%0A     * Sets the current folder that is being shown.%0A     * Use null as the root folder.%0A     *%0A     * @param folder the current folder, null for root.%0A     */%0A    public void setCurrentFolder(@Nullable String folder) %7B%0A        mCurrentFolder = folder;%0A    %7D%0A%0A    /**%0A     * Determines if the current folder is%0A     * the root folder.%0A     *%0A     * @return true if the current folder is%0A     * the root, false otherwise.%0A     */%0A    public boolean isRootFolder() %7B%0A        return mCurrentFolder == null;%0A    %7D%0A%0A    /**%0A     * Gets the current folder that is being shown.%0A     *%0A     * @return the current folder, null for root.%0A     */
 %0A   

Add documentation for BookmarkUiModel