com.im.commons.util
Class DataConvertorOptions
java.lang.Object
com.im.commons.util.DataConvertorOptions
public class DataConvertorOptions
- extends Object
Options for data conversion
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataConvertorOptions
public DataConvertorOptions()
setDecimalAcceptedForInt
public static void setDecimalAcceptedForInt(Object options,
boolean b)
- Utility method to simplify the usage of
DataConvertorOptions.Int options for Integer convertor.
This method just test if the options object is instance of Int and then calls
DataConvertorOptions.Int.setDecimalAccepted(boolean). If options is not instance of DataConvertorOptions.Int
the method does nothing.
- Parameters:
options - b -
setTruncationForStrings
public static void setTruncationForStrings(Object options,
int truncateTo,
String msg,
int doNotAppendIfLessThan)