com.jparams.test.tostring.template.directory.pedicate.GoogleGuavaPredicate Maven / Gradle / Ivy
package com.jparams.test.tostring.template.directory.pedicate;
import java.util.function.Predicate;
import java.util.regex.Pattern;
public class GoogleGuavaPredicate implements Predicate
{
private static final Pattern PATTERN_GOOGLE_GUAVA = Pattern.compile("^(.*)\\{[\\s\\S]*}$");
@Override
public boolean test(final String toString)
{
return PATTERN_GOOGLE_GUAVA.matcher(toString).matches();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy