Package jadex.micro.examples.helpline
Class InformationEntry
- java.lang.Object
-
- jadex.micro.examples.helpline.InformationEntry
-
- All Implemented Interfaces:
java.lang.Comparable
public class InformationEntry extends java.lang.Object implements java.lang.Comparable
Simple struct storing information about a person.
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description InformationEntry()
InformationEntry(java.lang.String name, java.lang.String information, long date)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- the name.
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set.
-
getInformation
public java.lang.String getInformation()
Get the information.- Returns:
- The information.
-
setInformation
public void setInformation(java.lang.String information)
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.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to another object.- Overrides:
equals
in classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
Compare this entry to another one.- Specified by:
compareTo
in interfacejava.lang.Comparable
-
-