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

com.jparams.test.tostring.template.directory.pedicate.GoogleGuavaPredicate Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
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