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

com.vtence.molecule.lib.matchers.StartingWith Maven / Gradle / Ivy

package com.vtence.molecule.lib.matchers;

public class StartingWith implements Matcher {
    private final String prefix;

    public StartingWith(String prefix) {
        this.prefix = prefix;
    }

    public boolean matches(String actual) {
        return actual.startsWith(prefix);
    }

    public static Matcher startingWith(String prefix) {
        return new StartingWith(prefix);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy