Class InformationEntry
- java.lang.Object
- 
- jadex.micro.examples.helplinemega.InformationEntry
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<java.lang.Object>
 
 public class InformationEntry extends java.lang.Object implements java.lang.Comparable<java.lang.Object>Simple struct storing information about a person.
- 
- 
Field SummaryFields Modifier and Type Field Description protected longdateThe date of the information.protected java.lang.StringinformationThe information.protected java.lang.StringnameThe person's name.
 - 
Constructor SummaryConstructors Constructor Description InformationEntry()InformationEntry(java.lang.String name, java.lang.String information, long date)
 - 
Method SummaryAll 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.java.lang.StringtoString()Create a string representation.
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() Get the name.- Returns:
- the name.
 
 - 
setNamepublic void setName(java.lang.String name) Set the name.- Parameters:
- name- The name to set.
 
 - 
getInformationpublic java.lang.String getInformation() Get the information.- Returns:
- The information.
 
 - 
setInformationpublic void setInformation(java.lang.String information) Set the information.- Parameters:
- information- The information to set.
 
 - 
getDatepublic long getDate() Get the date.- Returns:
- The date.
 
 - 
setDatepublic void setDate(long date) Set the date.- Parameters:
- date- The date to set.
 
 - 
hashCodepublic int hashCode() Get the hashcode.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) Test if equal to another object.- Overrides:
- equalsin class- java.lang.Object
 
 - 
compareTopublic int compareTo(java.lang.Object o) Compare this entry to another one.- Specified by:
- compareToin interface- java.lang.Comparable<java.lang.Object>
 
 - 
toStringpublic java.lang.String toString() Create a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-