Package org.apache.nifi.util.text
Class StartsWithDigitsDateTimeMatcher
java.lang.Object
org.apache.nifi.util.text.StartsWithDigitsDateTimeMatcher
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
expectedNumberOfDigits
private final int expectedNumberOfDigits
-
-
Constructor Details
-
StartsWithDigitsDateTimeMatcher
public StartsWithDigitsDateTimeMatcher(int expectedNumberOfDigits)
-
-
Method Details
-
matches
Description copied from interface:DateTimeMatcher
Determines whether or not the text matches the pattern- Specified by:
matches
in interfaceDateTimeMatcher
- Parameters:
text
- the text to evaluate- Returns:
true
if the text matches the pattern,false
otherwise
-