com.xiaoleilu.hutool.cron.pattern.matcher.YearValueMatcher Maven / Gradle / Ivy
package com.xiaoleilu.hutool.cron.pattern.matcher;
import java.util.List;
/**
* 年匹配
* 考虑年数字太大,不适合boolean数组,单独使用列表遍历匹配
* @author Looly
*
*/
public class YearValueMatcher implements ValueMatcher{
private List valueList;
public YearValueMatcher(List intValueList) {
this.valueList = intValueList;
}
@Override
public boolean match(Integer t) {
return valueList.contains(t);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy