org.apache.airavata.samples
Class SimpleMathService
java.lang.Object
org.apache.airavata.samples.SimpleMathService
public class SimpleMathService
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleMathService
public SimpleMathService()
add
public int add(int x,
int y)
- Parameters:
x
- y
-
- Returns:
- x plus y
subtract
public int subtract(int x,
int y)
- Parameters:
x
- y
-
- Returns:
- x minus y
multiply
public int multiply(int x,
int y)
- Parameters:
x
- y
-
- Returns:
- x multiply y
stringArrayGenerate
public String[] stringArrayGenerate(String x,
int size)
- Parameters:
x
- size
-
- Returns:
- a string array with size contains x
intArrayGenerate
public int[] intArrayGenerate(int x,
int size)
- Parameters:
x
- size
-
- Returns:
- an integer array with size contains x
greet
public String greet(String echo)
Copyright © 2011-2012 The Apache Software Foundation. All Rights Reserved.