Package com.caplin.motif.fx.trading
Class Account
- java.lang.Object
-
- com.caplin.motif.fx.trading.Account
-
public class Account extends Object
An instance of Account is instantiated with a single string containing the description and account name delimited by the | character.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDescription()
The description of the account.String
getFieldValue()
The raw unparsed value of the Account field that was passed to the object on construction.String
getName()
The name of the account.int
hashCode()
static Account
parse(String accountDescription, String accountID)
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 delimiterString
toString()
-
-
-
Constructor Detail
-
Account
public Account(String descriptionAndAccount)
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 Detail
-
parse
public static Account parse(String accountDescription, String accountID)
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
public static Account parsePlain(String plainAccount)
Use if your account does not have a pipe delimiter- Parameters:
plainAccount
- account containing no pipe delimiter- Returns:
- the Account object
-
getDescription
public String getDescription()
The description of the account.- Returns:
- The description of the account.
-
getName
public String getName()
The name of the account.- Returns:
- The name of the account.
-
getFieldValue
public String 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.
-
-