net.sf.nachocalendar.customizer

Class 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(String value)
Converts the String to a boolean.
static double
getDouble(String value)
Converts the String to a double.
static float
getFloat(String value)
Converts the String to a float.
static int
getInteger(String value)
Converts the String to an int.
static long
getLong(String value)
Converts the String to a long.

Method Details

getBoolean

public static boolean getBoolean(String value)
Converts the String to a boolean.
Parameters:
value -
Returns:

getDouble

public static double getDouble(String value)
Converts the String to a double.
Parameters:
value -
Returns:

getFloat

public static float getFloat(String value)
Converts the String to a float.
Parameters:
value -
Returns:

getInteger

public static int getInteger(String value)
Converts the String to an int.
Parameters:
value -
Returns:

getLong

public static long getLong(String value)
Converts the String to a long.
Parameters:
value -
Returns: