Class Account


  • public class Account
    extends java.lang.Object

    An instance of Account is instantiated with a single string containing the description and account name delimited by the | character.

    • Constructor Summary

      Constructors 
      Constructor Description
      Account​(java.lang.String descriptionAndAccount)
      Constructed with the string containing the description and account delimited by a |
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getDescription()
      The description of the account.
      java.lang.String getFieldValue()
      The raw unparsed value of the Account field that was passed to the object on construction.
      java.lang.String getName()
      The name of the account.
      int hashCode()  
      static Account parse​(java.lang.String accountDescription, java.lang.String accountID)
      If your account has a pipe delimiter, pass the two parts and the Account will be created as DESCRIPTION|ACCOUNT
      static Account parsePlain​(java.lang.String plainAccount)
      Use if your account does not have a pipe delimiter
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Account

        public Account​(java.lang.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​(java.lang.String accountDescription,
                                    java.lang.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​(java.lang.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 java.lang.String getDescription()
        The description of the account.
        Returns:
        The description of the account.
      • getName

        public java.lang.String getName()
        The name of the account.
        Returns:
        The name of the account.
      • getFieldValue

        public java.lang.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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object