public class CalculatorImpl extends RemoteObject implements Calculator
Constructor and Description |
---|
CalculatorImpl() |
Modifier and Type | Method and Description |
---|---|
int |
add(int x,
int y) |
int |
fib(int x) |
void |
fibonacci(int x) |
double |
getPi() |
getChannel, getParams, getRef, invokeMethod, kill, run, startRemoteObject
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public void fibonacci(int x)
fibonacci
in interface Calculator
public int fib(int x)
public int add(int x, int y)
add
in interface Calculator
public double getPi()
getPi
in interface Calculator