Package org.apache.commons.lang3.time
Class FastDateParser.CopyQuotedStrategy
- java.lang.Object
-
- org.apache.commons.lang3.time.FastDateParser.Strategy
-
- org.apache.commons.lang3.time.FastDateParser.CopyQuotedStrategy
-
- Enclosing class:
- FastDateParser
private static class FastDateParser.CopyQuotedStrategy extends FastDateParser.Strategy
A strategy that copies the static or quoted field in the parsing pattern
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
formatField
-
Constructor Summary
Constructors Constructor Description CopyQuotedStrategy(java.lang.String formatField)
Constructs a Strategy that ensures the formatField has literal text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
isNumber()
Is this field a number? The default implementation returns false.(package private) boolean
parse(FastDateParser parser, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
java.lang.String
toString()
Converts this instance to a handy debug string.
-
-
-
Method Detail
-
isNumber
boolean isNumber()
Is this field a number? The default implementation returns false.- Overrides:
isNumber
in classFastDateParser.Strategy
- Returns:
- true, if field is a number
-
parse
boolean parse(FastDateParser parser, java.util.Calendar calendar, java.lang.String source, java.text.ParsePosition pos, int maxWidth)
- Specified by:
parse
in classFastDateParser.Strategy
-
toString
public java.lang.String toString()
Converts this instance to a handy debug string.- Overrides:
toString
in classjava.lang.Object
- Since:
- 3.12.0
-
-