hudson.plugins.testabilityexplorer.utils
Class TypeConverterUtil

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.utils.TypeConverterUtil

public class TypeConverterUtil
extends java.lang.Object

Utility class to do some conversions.

Author:
reik.schatz

Method Summary
static int toInt(java.lang.String value, int defaultValue)
          Returns the given String parsed to an Integer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toInt

public static int toInt(java.lang.String value,
                        int defaultValue)
Returns the given String parsed to an Integer. If the String cannot be converted, the default value will be returned instead.

Parameters:
value - a String
defaultValue - default int value to return if conversion fails
Returns:
int


Copyright © 2008. All Rights Reserved.