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

com.jparams.test.tostring.template.directory.pedicate.IntellijPredicate 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 IntellijPredicate implements Predicate
{
    private static final Pattern PATTERN_INTELLIJ = Pattern.compile("^(.*)\\{(\\w)='[\\s\\S]*'}$");

    @Override
    public boolean test(final String toString)
    {
        return PATTERN_INTELLIJ.matcher(toString).matches();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy