public class StockEvolution extends java.lang.Object implements java.lang.Comparable<StockEvolution>
| Constructor and Description |
|---|
StockEvolution(long time,
int counter,
java.lang.String collection,
double price,
java.lang.String systemCode)
setting a stock evolution set
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StockEvolution other)
compares the time fields of two
StockEvolution-objects |
java.lang.String |
getCollection()
returns the collection of an item
|
int |
getCounter()
returns the counter of an item
|
double |
getPrice()
returns the price
|
java.lang.String |
getSystemCode()
returns the time of change
|
long |
getTime()
returns the time of change
|
void |
setCollection(java.lang.String newCollection)
sets the collection of an item
|
void |
setCounter(int newCounter)
sets the counter of an item
|
void |
setPrice(double newPrice)
sets the price of an item
|
void |
setSystemCode(java.lang.String newSystemCode)
sets the notation of an item
|
void |
setTime(long newTime)
sets the time of change
|
public StockEvolution(long time,
int counter,
java.lang.String collection,
double price,
java.lang.String systemCode)
time - the time of changecounter - the counter of an itemcollection - the collection of an itemprice - the price of an itemsystemCode - the notation of the itempublic long getTime()
public int getCounter()
public java.lang.String getCollection()
public double getPrice()
public java.lang.String getSystemCode()
public void setTime(long newTime)
newTime - the timepublic void setCounter(int newCounter)
newCounter - the counterpublic void setCollection(java.lang.String newCollection)
newCollection - the collectionpublic void setPrice(double newPrice)
newPrice - the pricepublic void setSystemCode(java.lang.String newSystemCode)
newSystemCode - the notationpublic int compareTo(StockEvolution other)
StockEvolution-objectscompareTo in interface java.lang.Comparable<StockEvolution>other - a second StockEvolution-objects