package rjt;
|
|
public class Types {
|
public static String echo(String s) {
|
return s;
|
}
|
|
public static boolean yes(boolean v) {
|
return v;
|
}
|
|
public static long addl(long a, long b) {
|
return a + b;
|
}
|
|
public static double addd(double a, double b) {
|
return a + b;
|
}
|
|
public static short adds(short a, short b) {
|
return (short) (a + b);
|
}
|
|
public static byte addb(byte a, byte b) {
|
return (byte) (a + b);
|
}
|
|
public static float addf(float a, float b) {
|
return a + b;
|
}
|
|
public static java.math.BigDecimal addbd(java.math.BigDecimal a, java.math.BigDecimal b) {
|
if (a == null || b == null)
|
return null;
|
return a.add(b);
|
}
|
|
public static byte[] echoBytes(byte[] b) {
|
return b;
|
}
|
|
public static java.sql.Date echoDate(java.sql.Date d) {
|
return d;
|
}
|
|
public static java.sql.Timestamp echoTs(java.sql.Timestamp t) {
|
return t;
|
}
|
|
public static String boom() {
|
throw new RuntimeException("rjt-boom");
|
}
|
}
|