Class YearValueMatcher

java.lang.Object
org.aoju.bus.cron.pattern.matcher.YearValueMatcher
All Implemented Interfaces:
org.aoju.bus.core.lang.Matcher<Integer>, PartMatcher

public class YearValueMatcher extends Object implements PartMatcher
年匹配 考虑年数字太大,不适合boolean数组,单独使用LinkedHashSet匹配
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

  • Method Details

    • match

      public boolean match(Integer t)
      Specified by:
      match in interface org.aoju.bus.core.lang.Matcher<Integer>
    • nextAfter

      public int nextAfter(int value)
      Description copied from interface: PartMatcher
      获取指定值之后的匹配值,也可以是指定值本身
      Specified by:
      nextAfter in interface PartMatcher
      Parameters:
      value - 指定的值
      Returns:
      匹配到的值或之后的值