Class StartsWithDigitsDateTimeMatcher

java.lang.Object
org.apache.nifi.util.text.StartsWithDigitsDateTimeMatcher
All Implemented Interfaces:
DateTimeMatcher

public class StartsWithDigitsDateTimeMatcher extends Object implements DateTimeMatcher
A DateTimeMatcher that bases its decision purely on whether or not the first X number of characters in the input text are digits.
  • Field Details

    • expectedNumberOfDigits

      private final int expectedNumberOfDigits
  • Constructor Details

    • StartsWithDigitsDateTimeMatcher

      public StartsWithDigitsDateTimeMatcher(int expectedNumberOfDigits)
  • Method Details

    • matches

      public boolean matches(String text)
      Description copied from interface: DateTimeMatcher
      Determines whether or not the text matches the pattern
      Specified by:
      matches in interface DateTimeMatcher
      Parameters:
      text - the text to evaluate
      Returns:
      true if the text matches the pattern, false otherwise