com.im.commons 5.9

com.im.commons.util
Class DataConvertorOptions

java.lang.Object
  extended by com.im.commons.util.DataConvertorOptions

public class DataConvertorOptions
extends Object

Options for data conversion


Nested Class Summary
static interface DataConvertorOptions.Int
          Options for Integer number convertor.
static interface DataConvertorOptions.Str
           
 
Constructor Summary
DataConvertorOptions()
           
 
Method Summary
static void setDecimalAcceptedForInt(Object options, boolean b)
          Utility method to simplify the usage of DataConvertorOptions.Int options for Integer convertor.
static void setTruncationForStrings(Object options, int truncateTo, String msg, int doNotAppendIfLessThan)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataConvertorOptions

public DataConvertorOptions()
Method Detail

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)

com.im.commons 5.9