it.ssc.pdv.Wrapper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jsr331-ssc Show documentation
Show all versions of jsr331-ssc Show documentation
This is a JSR331 interface for SSC (Software for the Calculation of the Simplex) is a java library for solving linear programming problems v. 3.0.1.
SSC was designed and developed by Stefano Scarioli.
The newest version!
package it.ssc.pdv;
import java.util.GregorianCalendar;
public class Wrapper {
public static String unwrapper(String value) {
return value;
}
public static long unwrapper(GregorianCalendar value) {
return value.getTimeInMillis();
}
public static String unwrapper(StringBuffer value) {
return value.toString();
}
public static byte unwrapper(Byte value) {
return value.byteValue();
}
public static short unwrapper(Short value) {
return value.shortValue();
}
public static int unwrapper(Integer value) {
return value.intValue();
}
public static long unwrapper(Long value) {
return value.longValue();
}
public static float unwrapper(Float value) {
return value.floatValue();
}
public static double unwrapper(Double value) {
return value.doubleValue();
}
public static char unwrapper(Character value) {
return value.charValue();
}
public static boolean unwrapper(Boolean value) {
return value.booleanValue();
}
}