fi.paatti.research.utils
Class StringHelper

java.lang.Object
  extended by fi.paatti.research.utils.StringHelper

public class StringHelper
extends Object

String modification tools

Author:
Lauri Satokangas, lauri.n.satokangas@student.jyu.fi
 

Constructor Summary
StringHelper()
           
 
Method Summary
static Integer parseStringToInteger(String stringToBeParsed)
          Parses the given string to an integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringHelper

public StringHelper()
Method Detail

parseStringToInteger

public static Integer parseStringToInteger(String stringToBeParsed)
Parses the given string to an integer. Parsing removes everything else except the numbers from the string before attempting to convert it into an integer.

Parameters:
stringToBeParsed - The string containing the integer presentation.
Returns:
The parsed integer or null if the string did not contain numbers.


Copyright © 2012. All Rights Reserved.