public class HistoryEntry extends Object implements Serializable, Comparable<HistoryEntry>
| Modifier | Constructor and Description |
|---|---|
protected |
HistoryEntry() |
|
HistoryEntry(String text,
int usageCount,
Date lastUsage) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(HistoryEntry o) |
Date |
getLastUsage() |
String |
getText() |
int |
getUsageCount() |
void |
setLastUsage(Date lastUsage) |
void |
setText(String text) |
void |
setUsageCount(int usageCount) |
String |
toString() |
public String getText()
public void setText(String text)
text - the text to setpublic int getUsageCount()
public void setUsageCount(int usageCount)
usageCount - the usageCount to setpublic Date getLastUsage()
public void setLastUsage(Date lastUsage)
lastUsage - the lastUsage to setpublic int compareTo(HistoryEntry o)
compareTo in interface Comparable<HistoryEntry>Copyright © 2018. All rights reserved.