31323334353637
private TokenMatcherFactory() { } public static TokenMatcher from(String token) { return new ExactTokenMatcher(token); }
57585960616263
// TODO Godin: we can return singleton instance return new ForgetLastTokenMatcher(); } public static TokenMatcher token(String token) { return new ExactTokenMatcher(token); }