com.bolour.sample.eclipse.service.echo
Class Echo

java.lang.Object
  |
  +--com.bolour.sample.eclipse.service.echo.Echo
All Implemented Interfaces:
IFunction

public class Echo
extends java.lang.Object
implements IFunction

Service implementing the echo function. No specific initialization is required for an instance of this function. All information required for the function's computation is built-in.

Author:
Azad

Constructor Summary
Echo()
           
 
Method Summary
 long compute(long x)
          Implementation of the echo function.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Echo

public Echo()
Method Detail

compute

public long compute(long x)
Implementation of the echo function.
Specified by:
compute in interface IFunction
Parameters:
x - The function argument.
Returns:
The function argument is echoed as its return value.