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.ComparableSimple struct storing information about a person.
-
-
Field Summary
Fields Modifier and Type Field Description protected longdateThe date of the information.protected java.lang.StringinformationThe information.protected java.lang.StringnameThe 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 intcompareTo(java.lang.Object o)Compare this entry to another one.booleanequals(java.lang.Object obj)Test if equal to another object.longgetDate()Get the date.java.lang.StringgetInformation()Get the information.java.lang.StringgetName()Get the name.inthashCode()Get the hashcode.voidsetDate(long date)Set the date.voidsetInformation(java.lang.String information)Set the information.voidsetName(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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Test if equal to another object.- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
Compare this entry to another one.- Specified by:
compareToin interfacejava.lang.Comparable
-
-