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);
}
}