org.pentaho.di.trans.steps.scriptvalues_mod
Class JavaScriptTest

java.lang.Object
  extended by org.pentaho.di.trans.steps.scriptvalues_mod.JavaScriptTest

public class JavaScriptTest
extends Object

Test help class for the interface Modified Javascript to java.

Author:
Sven Boden

Constructor Summary
JavaScriptTest()
           
 
Method Summary
 Long add1ToLong(Long l)
          Add 1 to l
static Long add1ToLongStatic(Long l)
          Add 1 to l
 Double add1ToNumber(Double d)
          Add 1.0 to d
static Double add1ToNumberStatic(Double d)
          Add 1.0 to d
 String add1ToString(String s)
          Add 1 to int value in s
static String add1ToStringStatic(String s)
          Add 1 to int value in s
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptTest

public JavaScriptTest()
Method Detail

add1ToLong

public Long add1ToLong(Long l)
Add 1 to l

Parameters:
l - Original long value
Returns:
l + 1

add1ToLongStatic

public static Long add1ToLongStatic(Long l)
Add 1 to l

Parameters:
l - Original long value
Returns:
l + 1

add1ToNumber

public Double add1ToNumber(Double d)
Add 1.0 to d

Parameters:
d - Original double value
Returns:
d + 1.0

add1ToNumberStatic

public static Double add1ToNumberStatic(Double d)
Add 1.0 to d

Parameters:
d - Original double value
Returns:
d + 1.0

add1ToString

public String add1ToString(String s)
Add 1 to int value in s

Parameters:
s - Original string value
Returns:
s + 1

add1ToStringStatic

public static String add1ToStringStatic(String s)
Add 1 to int value in s

Parameters:
s - Original string value
Returns:
s + 1