org.springframework.batch.item.file.transform
Class Range

java.lang.Object
  extended by org.springframework.batch.item.file.transform.Range

public class Range
extends Object

A class to represent ranges. A Range can have minimum/maximum values from interval <1,Integer.MAX_VALUE-1> A Range can be unbounded at maximum side. This can be specified by passing UPPER_BORDER_NOT_DEFINED} as max value or using constructor Range(int).

Author:
peter.zozom

Field Summary
static int UPPER_BORDER_NOT_DEFINED
           
 
Constructor Summary
Range(int min)
           
Range(int min, int max)
           
 
Method Summary
 int getMax()
           
 int getMin()
           
 boolean hasMaxValue()
           
 void setMax(int max)
           
 void setMin(int min)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UPPER_BORDER_NOT_DEFINED

public static final int UPPER_BORDER_NOT_DEFINED
See Also:
Constant Field Values
Constructor Detail

Range

public Range(int min)

Range

public Range(int min,
             int max)
Method Detail

getMax

public int getMax()

getMin

public int getMin()

setMax

public void setMax(int max)

setMin

public void setMin(int min)

hasMaxValue

public boolean hasMaxValue()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 SpringSource. All Rights Reserved.