Class 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.

    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object