|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.eclipsetrader.core.db.feed.Quote
Price quote snapshot.
Constructor Summary | |
---|---|
Quote()
|
|
Quote(java.util.Date date,
double last,
double bid,
double ask)
Build a new instance giving the last update date, last, bid and ask prices. |
|
Quote(double last,
double bid,
double ask)
Build a new instance giving the last, bid and ask prices. |
|
Quote(Quote quote)
Build a new instance that is the exact copy of the given instance. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one. |
double |
getAsk()
|
int |
getAskSize()
|
double |
getBid()
|
int |
getBidSize()
|
java.util.Date |
getDate()
Returns the date when the quote was last updated. |
double |
getLast()
|
long |
getVolume()
Returns the cumulative volume exchange. |
void |
setAsk(double ask)
|
void |
setAskSize(int askSize)
|
void |
setBid(double bid)
|
void |
setBidSize(int bidSize)
|
void |
setDate(java.util.Date date)
Sets the date when the quote was last updated. |
void |
setLast(double last)
|
void |
setVolume(long volume)
Sets the cumulative volume exchange. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Quote()
public Quote(Quote quote)
quote
- the instance to copypublic Quote(double last, double bid, double ask)
last
- the last pricebid
- the bid priceask
- the ask pricepublic Quote(java.util.Date date, double last, double bid, double ask)
date
- the last update datelast
- the last pricebid
- the bid priceask
- the ask priceMethod Detail |
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- the last update date/timepublic double getAsk()
public void setAsk(double ask)
public double getBid()
public void setBid(double bid)
public double getLast()
public void setLast(double last)
public int getAskSize()
public void setAskSize(int askSize)
public int getBidSize()
public void setBidSize(int bidSize)
public long getVolume()
public void setVolume(long volume)
volume
- the volume valuepublic boolean equals(java.lang.Object obj)
Quote objects are equal if all fields, excluding the date field, are equals.
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |