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 Details

    • UPPER_BORDER_NOT_DEFINED

      public static final int UPPER_BORDER_NOT_DEFINED
      See Also:
  • 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