Class BoolArrayMatcher

java.lang.Object
org.aoju.bus.cron.pattern.matcher.BoolArrayMatcher
All Implemented Interfaces:
org.aoju.bus.core.lang.Matcher<Integer>, PartMatcher
Direct Known Subclasses:
DayOfMonthMatcher

public class BoolArrayMatcher extends Object implements PartMatcher
将表达式中的数字值列表转换为Boolean数组,匹配时匹配相应数组位
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • BoolArrayMatcher

      public BoolArrayMatcher(List<Integer> intValueList)
      构造
      Parameters:
      intValueList - 匹配值列表
  • Method Details

    • match

      public boolean match(Integer value)
      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:
      匹配到的值或之后的值
    • getMinValue

      public int getMinValue()
      获取表达式定义的最小值
      Returns:
      最小值
    • toString

      public String toString()
      Overrides:
      toString in class Object