com.oanda.fxtrade.api
Class FXEventKey

java.lang.Object
  extended by com.oanda.fxtrade.api.FXEventKey

public class FXEventKey
extends java.lang.Object

FXEventKey is an internal class used to match FXEvents to FXEventInfos in a general fashion

Author:
Chris MacGregor

Constructor Summary
FXEventKey(FXPair p)
          Construct an FXEventKey corresponding to an FXPair
FXEventKey(Transaction t)
          Construct an FXEventKey corresponding to a Transaction
 
Method Summary
 boolean equals(java.lang.Object other)
          Overloaded Object.equals method
 int hashCode()
          Return the hashcode of the event key
 java.lang.String toString()
          Overloaded Object.toString method
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FXEventKey

public FXEventKey(Transaction t)
Construct an FXEventKey corresponding to a Transaction

Parameters:
t - The Transaction to create a key from

FXEventKey

public FXEventKey(FXPair p)
Construct an FXEventKey corresponding to an FXPair

Parameters:
p - The FXPair to create a key from
Method Detail

equals

public boolean equals(java.lang.Object other)
Overloaded Object.equals method

Overrides:
equals in class java.lang.Object
Parameters:
other - the object to be compared
Returns:
true if the event keys are equal, false otherwise

hashCode

public int hashCode()
Return the hashcode of the event key

Overrides:
hashCode in class java.lang.Object
Returns:
the hashcode of the event key

toString

public java.lang.String toString()
Overloaded Object.toString method

Overrides:
toString in class java.lang.Object


Copyright © 2005 OANDA Corporation. All Rights Reserved.