Großmarkt

market.statistics
Class HistoryEntry

java.lang.Object
  |
  +--market.statistics.HistoryEntry
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PriceHistoryEntry

public class HistoryEntry
extends Object
implements Serializable

Used by history lists to contain both a date and a value.

See Also:
orderHistory, priceHistory, customerHistory, Serialized Form

Field Summary
protected  Calendar date
           
protected  int value
           
 
Constructor Summary
HistoryEntry(Calendar date, int value)
           
 
Method Summary
 Calendar getDate()
           
 int getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

date

protected Calendar date

value

protected int value
Constructor Detail

HistoryEntry

public HistoryEntry(Calendar date,
                    int value)
Parameters:
date - the date of the entry.
value - the value of the entry.
Method Detail

getDate

public Calendar getDate()
Returns:
the date of the entry.

getValue

public int getValue()
Returns:
the value of the entry.

toString

public String toString()
Overrides:
toString in class Object

Großmarkt