openlist.util
Class IntegerSquarer

java.lang.Object
  extended by openlist.util.IntegerSquarer
All Implemented Interfaces:
Function1arg

public class IntegerSquarer
extends java.lang.Object
implements Function1arg

A Squarer squares its argument


Constructor Summary
IntegerSquarer()
           
 
Method Summary
 java.lang.Integer apply(java.lang.Object arg)
          Apply this Squarer to an argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerSquarer

public IntegerSquarer()
Method Detail

apply

public java.lang.Integer apply(java.lang.Object arg)
Apply this Squarer to an argument.

Specified by:
apply in interface Function1arg
Parameters:
arg - the value to be squared
Returns:
the arg squared