Package com.caplin.motif.fx.trading
Class Account
java.lang.Object
com.caplin.motif.fx.trading.Account
An instance of Account is instantiated with a single string containing the description and account name delimited by the | character.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The description of the account.The raw unparsed value of the Account field that was passed to the object on construction.getName()
The name of the account.int
hashCode()
static Account
If your account has a pipe delimiter, pass the two parts and the Account will be created as DESCRIPTION|ACCOUNTstatic Account
parsePlain
(String plainAccount) Use if your account does not have a pipe delimitertoString()
-
Constructor Details
-
Account
Constructed with the string containing the description and account delimited by a |- Parameters:
descriptionAndAccount
- The string containing the description and account delimited by a |
-
-
Method Details
-
parse
If your account has a pipe delimiter, pass the two parts and the Account will be created as DESCRIPTION|ACCOUNT- Parameters:
accountDescription
-accountID
-- Returns:
-
parsePlain
Use if your account does not have a pipe delimiter- Parameters:
plainAccount
- account containing no pipe delimiter- Returns:
- the Account object
-
getDescription
The description of the account.- Returns:
- The description of the account.
-
getName
The name of the account.- Returns:
- The name of the account.
-
getFieldValue
The raw unparsed value of the Account field that was passed to the object on construction.- Returns:
- the raw unparsed value of the Account field.
-
toString
-
hashCode
public int hashCode() -
equals
-