com.vtence.molecule.matchers.StartingWith Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of molecule Show documentation
Show all versions of molecule Show documentation
A web micro-framework for Java
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);
}
}