Class IntegerParser

  • All Implemented Interfaces:
    Parser<java.lang.Integer>

    public class IntegerParser
    extends java.lang.Object
    implements Parser<java.lang.Integer>
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer parse​(java.lang.String input)
      Convert a string into an object of the desired type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IntegerParser

        public IntegerParser()
    • Method Detail

      • parse

        public java.lang.Integer parse​(java.lang.String input)
        Convert a string into an object of the desired type.
        Specified by:
        parse in interface Parser<java.lang.Integer>
        Parameters:
        input - input string
        Returns:
        value of the desired type