
org.unlaxer.tinyexpression.parser.DayOfWeekEnumParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tinyExpression Show documentation
Show all versions of tinyExpression Show documentation
TinyExpression implemented with Unlaxer
package org.unlaxer.tinyexpression.parser;
import org.unlaxer.parser.SuggestableParser;
import java.time.DayOfWeek;
public class DayOfWeekEnumParser extends SuggestableParser {
private static String[] DAYS_OF_WEEK = new String[DayOfWeek.values().length];
static {
for (int i = 0; i < DayOfWeek.values().length; i++) {
DAYS_OF_WEEK[i] = DayOfWeek.of(i + 1).name();
}
}
public DayOfWeekEnumParser() {
super(false, DAYS_OF_WEEK);
}
@Override
public String getSuggestString(String matchedString) {
return matchedString;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy