Class FastDateParser.Strategy

java.lang.Object
org.apache.commons.lang3.time.FastDateParser.Strategy
Direct Known Subclasses:
FastDateParser.CopyQuotedStrategy, FastDateParser.NumberStrategy, FastDateParser.PatternStrategy
Enclosing class:
FastDateParser

private abstract static class FastDateParser.Strategy extends Object
A strategy to parse a single field from the parsing pattern
  • Constructor Details

    • Strategy

      private Strategy()
  • Method Details

    • isNumber

      boolean isNumber()
      Is this field a number? The default implementation returns false.
      Returns:
      true, if field is a number
    • parse

      abstract boolean parse(FastDateParser parser, Calendar calendar, String source, ParsePosition pos, int maxWidth)