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

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

There is a newer version: 0.15.0
Show newest version
package com.vtence.molecule.matchers;

import com.vtence.molecule.Matcher;

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