Package org.springframework.cloud.task.batch.autoconfigure

# Class RangeConverter

java.lang.Object
org.springframework.cloud.task.batch.autoconfigure.RangeConverter

All Implemented Interfaces:
  `org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>`

@Component @ConfigurationPropertiesBinding public class RangeConverter extends Object implements org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>
Converter for taking properties of format `start-end` or `start` (where start and end are both integers) and converting them into `Range` instances for configuring a `FlatFileItemReader`.

Since:
  2.3
Author:
  Michael Minella

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RangeConverter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `org.springframework.batch.item.file.transform.Range`
  `convert(String source)`

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

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

  ### Methods inherited from interface org.springframework.core.convert.converter.Converter

  `andThen`

- ## Constructor Details

  - ### RangeConverter

    public RangeConverter()

- ## Method Details

  - ### convert

    public org.springframework.batch.item.file.transform.Range convert(String source)
    Specified by:
      `convert` in interface `org.springframework.core.convert.converter.Converter<String,org.springframework.batch.item.file.transform.Range>`