Package jadex.micro.helpline
Class InformationEntry
java.lang.Object
jadex.micro.helpline.InformationEntry
- All Implemented Interfaces:
Comparable
Simple struct storing information about a person.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an entry.InformationEntry
(String name, String information, long date) Create an entry. -
Method Summary
Modifier and TypeMethodDescriptionint
Compare this entry to another one.boolean
Test if equal to another object.long
getDate()
Get the date.Get the information.getName()
Get the name.int
hashCode()
Get the hashcode.void
setDate
(long date) Set the date.void
setInformation
(String information) Set the information.void
Set the name.
-
Field Details
-
name
The person's name. -
information
The information. -
date
protected long dateThe date of the information.
-
-
Constructor Details
-
InformationEntry
public InformationEntry()Create an entry. -
InformationEntry
Create an entry.
-
-
Method Details
-
getName
Get the name.- Returns:
- the name.
-
setName
Set the name.- Parameters:
name
- The name to set.
-
getInformation
Get the information.- Returns:
- The information.
-
setInformation
Set the information.- Parameters:
information
- The information to set.
-
getDate
public long getDate()Get the date.- Returns:
- The date.
-
setDate
public void setDate(long date) Set the date.- Parameters:
date
- The date to set.
-
hashCode
public int hashCode()Get the hashcode. -
equals
Test if equal to another object. -
compareTo
Compare this entry to another one.- Specified by:
compareTo
in interfaceComparable
-