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

com.github.alex1304.ultimategdbot.api.command.annotated.paramconverter.IntConverter Maven / Gradle / Ivy

There is a newer version: 6.0.2
Show newest version
package com.github.alex1304.ultimategdbot.api.command.annotated.paramconverter;

import com.github.alex1304.ultimategdbot.api.command.Context;

import reactor.core.publisher.Mono;

public class IntConverter implements ParamConverter {

	@Override
	public Mono convert(Context ctx, String input) {
		return Mono.just(input).map(Integer::parseInt);
	}

	@Override
	public Class type() {
		return Integer.class;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy