net.sf.nachocalendar.customizer
Class PropertiesConverter

java.lang.Object
  extended by net.sf.nachocalendar.customizer.PropertiesConverter

public final class PropertiesConverter
extends java.lang.Object

Utility class to convert Strings to various types.

Author:
Ignacio Merani

Method Summary
static boolean getBoolean(java.lang.String value)
          Converts the String to a boolean.
static double getDouble(java.lang.String value)
          Converts the String to a double.
static float getFloat(java.lang.String value)
          Converts the String to a float.
static int getInteger(java.lang.String value)
          Converts the String to an int.
static long getLong(java.lang.String value)
          Converts the String to a long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInteger

public static int getInteger(java.lang.String value)
Converts the String to an int.

Parameters:
value -
Returns:

getBoolean

public static boolean getBoolean(java.lang.String value)
Converts the String to a boolean.

Parameters:
value -
Returns:

getLong

public static long getLong(java.lang.String value)
Converts the String to a long.

Parameters:
value -
Returns:

getFloat

public static float getFloat(java.lang.String value)
Converts the String to a float.

Parameters:
value -
Returns:

getDouble

public static double getDouble(java.lang.String value)
Converts the String to a double.

Parameters:
value -
Returns: