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

nl.topicus.plugins.maven.javassist.IsDirectoryPredicate Maven / Gradle / Ivy

package nl.topicus.plugins.maven.javassist;

import java.io.File;

import com.google.common.base.Predicate;

public class IsDirectoryPredicate implements Predicate {

	public static final IsDirectoryPredicate INSTANCE = new IsDirectoryPredicate();

	@Override
	public boolean apply(String resource) {
		try {
			File file = new File(resource);
			if (file.isDirectory()) {
				return true;
			}
		} catch (Exception e) {
		}

		return false;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy