public class DMinMax extends CellProcessorAdaptor
MIN or MAX constants
 provided in the class.| Modifier and Type | Field and Description | 
|---|---|
| static int | MAX_8_BIT_SIGNEDMaximum value for 8 bits (signed) | 
| static int | MAX_8_BIT_UNSIGNEDMaximum value for 8 bits (unsigned) | 
| static double | MAX_CHARMaximum value for a Character | 
| static double | MAX_DOUBLEMaximum value for a Double | 
| static double | MAX_SHORTMaximum value for a Short | 
| static int | MIN_8_BIT_SIGNEDMinimum value for 8 bits (signed) | 
| static int | MIN_8_BIT_UNSIGNEDMinimum value for 8 bits (unsigned) | 
| static double | MIN_CHARMinimum value for a Character | 
| static double | MIN_DOUBLEMinimum value for a Double | 
| static double | MIN_SHORTMinimum value for a Short | 
next| Constructor and Description | 
|---|
| DMinMax(double min,
       double max)Constructs a new DMinMax processor, which converts the input to a Double and ensures the value is
 between the supplied min and max values. | 
| DMinMax(double min,
       double max,
       DoubleCellProcessor next)Constructs a new DMinMax processor, which converts the input to a Double, ensures the value is between
 the supplied min and max values, then calls the next processor in the chain. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | execute(Object value,
       CsvContext context)This method is invoked by the framework when the processor needs to process data or check constraints. | 
toString, validateInputNotNullpublic static final double MAX_DOUBLE
public static final double MIN_DOUBLE
public static final double MAX_SHORT
public static final double MIN_SHORT
public static final double MAX_CHAR
public static final double MIN_CHAR
public static final int MAX_8_BIT_UNSIGNED
public static final int MIN_8_BIT_UNSIGNED
public static final int MAX_8_BIT_SIGNED
public static final int MIN_8_BIT_SIGNED
public DMinMax(double min,
       double max)
min - the minimum value (inclusive)max - the maximum value (inclusive)IllegalArgumentException - if max < minpublic DMinMax(double min,
       double max,
       DoubleCellProcessor next)
min - the minimum value (inclusive)max - the maximum value (inclusive)next - the next processor in the chainIllegalArgumentException - if max < minNullPointerException - if next is nullpublic Object execute(Object value, CsvContext context)
SuperCsvCellProcessorException - if value is null or can't be parsed as a DoubleSuperCsvConstraintViolationException - if value doesn't lie between min and max (inclusive)Copyright © 2007-2013 Super CSV. All Rights Reserved.