1 /*
2 * Copyright 2003 - 2013 The eFaps Team
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * Revision: $Rev$
17 * Last Changed: $Date$
18 * Last Changed By: $Author$
19 */
20
21
22 package org.efaps.admin.datamodel.attributevalue;
23
24 import java.math.BigDecimal;
25
26
27 /**
28 * Value for a Rate stored in the eFaps Database.
29 *
30 * @author The eFaps Team
31 * @version $Id$
32 */
33 public class Rate
34 {
35 /**
36 * Numerator.
37 */
38 private final BigDecimal numerator;
39
40 /**
41 * Denominator.
42 */
43 private final BigDecimal denominator;
44
45 /**
46 * @param _numerator Numerator
47 * @param _denominator Denominator
48 */
49 public Rate(final BigDecimal _numerator,
50 final BigDecimal _denominator)
51 {
52 this.numerator = _numerator;
53 this.denominator = _denominator;
54 }
55
56
57 /**
58 * Getter method for the instance variable {@link #numerator}.
59 *
60 * @return value of instance variable {@link #numerator}
61 */
62 public BigDecimal getNumerator()
63 {
64 return this.numerator;
65 }
66
67
68 /**
69 * Getter method for the instance variable {@link #denominator}.
70 *
71 * @return value of instance variable {@link #denominator}
72 */
73 public BigDecimal getDenominator()
74 {
75 return this.denominator;
76 }
77 }