01: /*
02: * de.schlund.pfixcore.example.webservices.CalculatorImpl
03: */
04: package de.schlund.pfixcore.example.webservices;
05:
06: /**
07: * CalculatorImpl.java
08: *
09: * Created: 30.06.2004
10: *
11: * @author mleidig
12: */
13: public class CalculatorImpl implements Calculator {
14:
15: public int add(int value1, int value2) {
16: return value1 + value2;
17: }
18:
19: public int invert(int value) {
20: return -value;
21: }
22:
23: public int subtract(int value1, int value2) {
24: return value1 - value2;
25: }
26:
27: public int multiply(int value1, int value2) {
28: return value1 * value2;
29: }
30:
31: public int divide(int value1, int value2) {
32: return value1 / value2;
33: }
34:
35: }
|