public class InformationEntry
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
protected long |
date
The date of the information.
|
protected java.lang.String |
information
The information.
|
protected java.lang.String |
name
The person's name.
|
Constructor and Description |
---|
InformationEntry() |
InformationEntry(java.lang.String name,
java.lang.String information,
long date) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
Compare this entry to another one.
|
boolean |
equals(java.lang.Object obj)
Test if equal to another object.
|
long |
getDate()
Get the date.
|
java.lang.String |
getInformation()
Get the information.
|
java.lang.String |
getName()
Get the name.
|
int |
hashCode()
Get the hashcode.
|
void |
setDate(long date)
Set the date.
|
void |
setInformation(java.lang.String information)
Set the information.
|
void |
setName(java.lang.String name)
Set the name.
|
protected java.lang.String name
protected java.lang.String information
protected long date
public InformationEntry()
public InformationEntry(java.lang.String name, java.lang.String information, long date)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public java.lang.String getInformation()
public void setInformation(java.lang.String information)
information
- The information to set.public long getDate()
public void setDate(long date)
date
- The date to set.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable