View Javadoc

1   // %1126721331041:hoplugins.transfers.vo%
2   package hoplugins.transfers.vo;
3   
4   /***
5    * Recap Information about a single Transfer Type
6    *
7    * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
8    */
9   public class TransferTypeRecap {
10      //~ Instance fields ----------------------------------------------------------------------------
11  
12      /*** Net Income of all the transfers of this type */
13      private int netIncome;
14  
15      /*** Number of transfers of this type */
16      private int number;
17  
18      //~ Methods ------------------------------------------------------------------------------------
19  
20      /***
21       * Returns the total Net Income
22       *
23       * @return total gain or loss by transfers of this type
24       */
25      public final int getNetIncome() {
26          return netIncome;
27      }
28  
29      /***
30       * Returns the number of transfers
31       *
32       * @return Number of transfer
33       */
34      public final int getNumber() {
35          return number;
36      }
37  
38      /***
39       * Add a Transfer to the collection
40       *
41       * @param income income of the transfer
42       */
43      public final void addOperation(int income) {
44          number++;
45          netIncome = netIncome + income;
46      }
47  }