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 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.java.lang.String
toString()
Create a string representation.
-
-
-
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<java.lang.Object>
-
toString
public java.lang.String toString()
Create a string representation.- Overrides:
toString
in classjava.lang.Object
-
-