Class ValueDecoderFactory.IntDecoder

    • Field Detail

      • mValue

        protected int mValue
    • Constructor Detail

      • IntDecoder

        public IntDecoder()
    • Method Detail

      • getValue

        public int getValue()
      • decode

        public void decode​(java.lang.String lexical)
                    throws java.lang.IllegalArgumentException
        Description copied from class: TypedValueDecoder
        Method used to invoke decoding functionality, for decoding the value encoded in given substring. It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.

        Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (TypedValueDecoder.handleEmptyValue() is called instead for such cases)

        Specified by:
        decode in class TypedValueDecoder
        Throws:
        java.lang.IllegalArgumentException
      • decode

        public void decode​(char[] lexical,
                           int start,
                           int end)
                    throws java.lang.IllegalArgumentException
        Description copied from class: TypedValueDecoder
        Method used to invoke decoding functionality, for decoding the value encoded in given portion of character array It is to try decoding value, and either store decoded value for later access (using method(s) caller knows about), or throw an exception to indicate problem encountered.

        Note: method will get called with "trimmed" input, i.e. input will never have any leading or trailing white space. It will also never be called with empty content (TypedValueDecoder.handleEmptyValue() is called instead for such cases)

        Specified by:
        decode in class TypedValueDecoder
        Throws:
        java.lang.IllegalArgumentException