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

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

package name.valery1707.jcommander.validators.io;

import name.valery1707.jcommander.validators.ValueChecker;

import java.io.File;

public class ExistsDirectoryReadable extends ValueChecker {
	@Override
	protected boolean check(File value) {
		return value.exists() && value.isDirectory() && value.canRead();
	}

	@Override
	protected String error() {
		return "be exists and readable directory";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy