Class FastDateParser.NumberStrategy

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int field  
    • Constructor Summary

      Constructors 
      Constructor Description
      NumberStrategy​(int field)
      Constructs a Strategy that parses a Number field
    • 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) int modify​(FastDateParser parser, int iValue)
      Make any modifications to parsed integer
      (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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • field

        private final int field
    • Constructor Detail

      • NumberStrategy

        NumberStrategy​(int field)
        Constructs a Strategy that parses a Number field
        Parameters:
        field - The Calendar field
    • Method Detail

      • isNumber

        boolean isNumber()
        Is this field a number? The default implementation returns false.
        Overrides:
        isNumber in class FastDateParser.Strategy
        Returns:
        true, if field is a number
      • modify

        int modify​(FastDateParser parser,
                   int iValue)
        Make any modifications to parsed integer
        Parameters:
        parser - The parser
        iValue - The parsed integer
        Returns:
        The modified value
      • toString

        public java.lang.String toString()
        Converts this instance to a handy debug string.
        Overrides:
        toString in class java.lang.Object
        Since:
        3.12.0