Package org.apache.commons.lang3.time
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 java.lang.Object
A strategy to parse a single field from the parsing pattern
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Strategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) boolean
isNumber()
Is this field a number? The default implementation returns false.(package private) abstract boolean
parse(FastDateParser parser, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
-
-
-
Method Detail
-
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, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
-
-