jadex.micro.examples.helpline
Class InformationEntry

java.lang.Object
  extended by jadex.micro.examples.helpline.InformationEntry
All Implemented Interfaces:
Comparable

public class InformationEntry
extends Object
implements Comparable

Simple struct storing information about a person.


Field Summary
protected  long date
          The date of the information.
protected  String information
          The information.
protected  String name
          The person's name.
 
Constructor Summary
InformationEntry()
           
InformationEntry(String name, String information, long date)
           
 
Method Summary
 int compareTo(Object o)
          Compare this entry to another one.
 boolean equals(Object obj)
          Test if equal to another object.
 long getDate()
          Get the date.
 String getInformation()
          Get the information.
 String getName()
          Get the name.
 int hashCode()
          Get the hashcode.
 void setDate(long date)
          Set the date.
 void setInformation(String information)
          Set the information.
 void setName(String name)
          Set the name.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The person's name.


information

protected String information
The information.


date

protected long date
The date of the information.

Constructor Detail

InformationEntry

public InformationEntry()

InformationEntry

public InformationEntry(String name,
                        String information,
                        long date)
Method Detail

getName

public String getName()
Get the name.

Returns:
the name.

setName

public void setName(String name)
Set the name.

Parameters:
name - The name to set.

getInformation

public String getInformation()
Get the information.

Returns:
The information.

setInformation

public void setInformation(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 class Object

equals

public boolean equals(Object obj)
Test if equal to another object.

Overrides:
equals in class Object

compareTo

public int compareTo(Object o)
Compare this entry to another one.

Specified by:
compareTo in interface Comparable


Copyright © 2010. All Rights Reserved.