com.github.croesch.micro_debug.parser
Class IntegerParser

java.lang.Object
  extended by com.github.croesch.micro_debug.parser.IntegerParser
All Implemented Interfaces:
IParser

public final class IntegerParser
extends java.lang.Object
implements IParser

Parses Integers from Strings.

Since:
Date: Feb 22, 2012
Author:
croesch

Constructor Summary
IntegerParser()
           
 
Method Summary
 java.lang.Integer parse(java.lang.String toParse)
          Parses the given String and returns an Object of the specific 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

@Nullable
public java.lang.Integer parse(java.lang.String toParse)
Parses the given String and returns an Object of the specific type. If the input cannot be parsed into a valid object, than it will return null.

Specified by:
parse in interface IParser
Parameters:
toParse - the String to convert to an Object.
Returns:
the Object read from the String,
or null if the input was invalid


Copyright © 2012. All Rights Reserved.