Class AlwaysTrueMatcher

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

public class AlwaysTrueMatcher extends Object implements PartMatcher
所有值匹配,始终返回true
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • AlwaysTrueMatcher

      public AlwaysTrueMatcher()
  • 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:
      匹配到的值或之后的值
    • toString

      public String toString()
      Overrides:
      toString in class Object