Class Fact.Balance

  • Enclosing class:
    Fact

    public static class Fact.Balance
    extends Object
    Fact Balance Utility
    Version:
    $Id: Fact.java,v 1.2 2006/07/30 00:53:33 jjanke Exp $
    Author:
    Jorg Janke
    • Constructor Detail

      • Balance

        public Balance​(BigDecimal dr,
                       BigDecimal cr)
        New Balance
        Parameters:
        dr - DR
        cr - CR
    • Method Detail

      • getBalance

        public BigDecimal getBalance()
        Get Balance
        Returns:
        balance
      • getPostBalance

        public BigDecimal getPostBalance()
        Get Post Balance
        Returns:
        absolute balance - negative if reversal
      • isZeroBalance

        public boolean isZeroBalance()
        Zero Balance
        Returns:
        true if 0
      • isReversal

        public boolean isReversal()
        Reversal
        Returns:
        true if both DR/CR are negative or zero
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class Object
        Returns:
        info