Package org.springframework.batch.item.file.transform

# Class Range

java.lang.Object
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

  Fields
  Modifier and Type
  Field
  Description
  `static final int`
  `UPPER_BORDER_NOT_DEFINED`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Range(int min)`
  `Range(int min, int max)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getMax()`
  `int`
  `getMin()`
  `boolean`
  `hasMaxValue()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### UPPER_BORDER_NOT_DEFINED

    public static final int UPPER_BORDER_NOT_DEFINED
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### Range

    public Range(int min)

  - ### Range

    public Range(int min, int max)

- ## Method Details

  - ### getMax

    public int getMax()

  - ### getMin

    public int getMin()

  - ### hasMaxValue

    public boolean hasMaxValue()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`