Class AccountancyEntry

    • Constructor Detail

      • AccountancyEntry

        public AccountancyEntry​(javax.money.MonetaryAmount value)
        Creates a new PersistentAccountancyEntry with a specific value.
        Parameters:
        value - The value that is stored in this entry.
      • AccountancyEntry

        public AccountancyEntry​(javax.money.MonetaryAmount value,
                                String description)
        Creates a new PersistentAccountancyEntry with a specific value and a user defined description.
        Parameters:
        value - The value that is stored in this entry.
        description - A user-supplied description for this entry.
      • AccountancyEntry

        protected AccountancyEntry()
    • Method Detail

      • hasDate

        public boolean hasDate()
        Returns whether the AccountancyEntry already has a Date set.
        Returns:
      • isRevenue

        public boolean isRevenue()
        Returns whether the entry is considered revenue, i.e. its value is zero or positive.
        Returns:
        Since:
        7.1
      • isExpense

        public boolean isExpense()
        Returns whether the entry is considered expense, i.e. its value is negative.
        Returns:
        Since:
        7.1
      • getValue

        public javax.money.MonetaryAmount getValue()
      • getDescription

        public String getDescription()