public class Bookmark extends Object implements Serializable, Comparable<Bookmark>
| Modifier and Type | Field and Description |
|---|---|
protected File |
m_Directory
the associated directory.
|
protected String |
m_Name
the name of the bookmark.
|
| Constructor and Description |
|---|
Bookmark(File dir)
Initializes the bookmark with the given directory.
|
Bookmark(String name,
File dir)
Initializes the bookmark with the given directory.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Bookmark o)
Compares this object with the specified object for order.
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
File |
getDirectory()
Returns the associated directory of the bookmark.
|
String |
getName()
Returns the name of the bookmark.
|
String |
toString()
Returns the name.
|
protected String m_Name
protected File m_Directory
public Bookmark(File dir)
dir - the directory to usepublic String getName()
public File getDirectory()
public int compareTo(Bookmark o)
Only uses the name for comparison.
compareTo in interface Comparable<Bookmark>o - the object to be compared.public boolean equals(Object obj)
Copyright © 2016. All rights reserved.