|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FXTick
An FXTick object represents a single forex spot price.
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a exact copy of this FXTick. |
boolean |
equals(java.lang.Object o)
Compares two FXTick objects. |
double |
getAsk()
Returns the ask price. |
double |
getBid()
Returns the bid price. |
FXTick |
getInverse()
Return a new FXTick which is the inverse of this FXTick. |
long |
getMaxUnits()
Returns the maximum amount of units this tick applies for. |
double |
getMean()
|
FXPair |
getPair()
|
long |
getTimestamp()
Returns the unix timestamp for this FXTick. |
int |
hashCode()
Return the hashcode of this pair |
void |
setAsk(double ask)
Sets the ask price. |
void |
setBid(double bid)
Sets the bid price. |
void |
setMaxUnits(long maxUnits)
Sets the max units this tick is valid for. |
void |
setTimestamp(long timestamp)
Sets the timestamp. |
java.lang.String |
toString()
|
Method Detail |
---|
java.lang.Object clone()
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the FXTick to be compared
FXPair getPair()
double getAsk()
double getBid()
FXTick getInverse()
Note: bid = 1 / ask ; ask = 1 / bid
double getMean()
long getTimestamp()
int hashCode()
hashCode
in class java.lang.Object
void setAsk(double ask)
ask
- the ask pricevoid setBid(double bid)
bid
- the bid pricevoid setTimestamp(long timestamp)
timestamp
- the timestamplong getMaxUnits()
void setMaxUnits(long maxUnits)
maxUnits
- max units this tick is valid forjava.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |