01: /*
02: * Created on 29.04.2005 from Linke
03: *
04: */
05: package test.crispy.example.service;
06:
07: /**
08: * @author Linke
09: *
10: */
11: public class CalculatorImpl implements Calculator {
12:
13: /**
14: * @see test.crispy.example.service.Calculator#add(java.lang.Integer, java.lang.Integer)
15: */
16: public int add(int a, int b) {
17: return a + b;
18: }
19:
20: /**
21: * @see test.crispy.example.service.Calculator#add(java.lang.Long, java.lang.Long)
22: */
23: public long add(long a, long b) {
24: return a + b;
25: }
26:
27: /**
28: * @see test.crispy.example.service.Calculator#add(java.lang.Long, java.lang.Long)
29: */
30: public double add(double a, double b) {
31: return a + b;
32: }
33:
34: /**
35: * @see test.crispy.example.service.Calculator#subtract(java.lang.Integer, java.lang.Integer)
36: */
37: public int subtract(int pvA, int pvB) {
38: return pvA - pvB;
39: }
40:
41: public Long addLong(Long a, Long b) {
42: if (a == null || b == null) {
43: return null;
44: } else {
45: return new Long(a.longValue() + b.longValue());
46: }
47: }
48:
49: }
|