All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redislabs.riot.cli.file.RangeConverter Maven / Gradle / Ivy

package com.redislabs.riot.cli.file;

import org.springframework.batch.item.file.transform.Range;

import picocli.CommandLine.ITypeConverter;

public class RangeConverter implements ITypeConverter {

	@Override
	public Range convert(String value) throws Exception {
		String[] split = value.split("-");
		return new Range(Integer.parseInt(split[0]), Integer.parseInt(split[1]));
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy