public class LMinMax 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 int | MAX_CHARMaximum value for a Character | 
| static int | MAX_INTEGERMaximum value for an Integer | 
| static long | MAX_LONGMaximum value for a Long | 
| static short | 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 int | MIN_CHARMinimum value for a Character | 
| static int | MIN_INTEGERMinimum value for an Integer | 
| static long | MIN_LONGMinimum value for a Long | 
| static short | MIN_SHORTMinimum value for a Short | 
next| Constructor and Description | 
|---|
| LMinMax(long min,
       long max)Constructs a new LMinMax processor, which converts the input data to a Long and and ensures the value is
 between the supplied min and max values. | 
| LMinMax(long min,
       long max,
       LongCellProcessor next)Constructs a new LMinMax processor, which converts the input data to a Long and and 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 long MAX_LONG
public static final long MIN_LONG
public static final int MAX_INTEGER
public static final int MIN_INTEGER
public static final short MAX_SHORT
public static final short MIN_SHORT
public static final int MAX_CHAR
public static final int 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 LMinMax(long min,
       long max)
min - the minimum value (inclusive)max - the maximum value (inclusive)IllegalArgumentException - if max < minpublic LMinMax(long min,
       long max,
       LongCellProcessor next)
min - the minimum value (inclusive)max - the maximum value (inclusive)next - the next processor in the chainNullPointerException - if next is nullIllegalArgumentException - if max < minpublic Object execute(Object value, CsvContext context)
SuperCsvCellProcessorException - if value is null or  can't be parsed as a LongSuperCsvConstraintViolationException - if value, or doesn't lie between min and max (inclusive)Copyright © 2007-2013 Super CSV. All Rights Reserved.