Back to project page android-file-chooser.
The source code is released under:
GNU General Public License
If you think the Android project android-file-chooser listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package br.com.thinkti.android.filechooser; //from www.ja va 2 s .com public class Option implements Comparable<Option>{ private String name; private String data; private String path; private boolean folder; private boolean parent; private boolean back; public Option(String n,String d,String p, boolean folder, boolean parent, boolean back) { name = n; data = d; path = p; this.folder = folder; this.parent = parent; this.back = back; } public String getName() { return name; } public String getData() { return data; } public String getPath() { return path; } @Override public int compareTo(Option o) { if(this.name != null) return this.name.toLowerCase().compareTo(o.getName().toLowerCase()); else throw new IllegalArgumentException(); } public boolean isFolder() { return folder; } public boolean isParent() { return parent; } public boolean isBack() { return back; } public void setBack(boolean back) { this.back = back; } }