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

name.valery1707.jcommander.validators.io.ExistsFileExecutable Maven / Gradle / Ivy

package name.valery1707.jcommander.validators.io;

import name.valery1707.jcommander.validators.ValueChecker;

import java.io.File;

public class ExistsFileExecutable extends ValueChecker {
	@Override
	protected boolean check(File value) {
		return value.exists() && value.isFile() && value.canExecute();
	}

	@Override
	protected String error() {
		return "be exists and executable file";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy