fr.paris.lutece.plugins.stock.utils
Class StockUtils

java.lang.Object
  extended by fr.paris.lutece.plugins.stock.utils.StockUtils

public final class StockUtils
extends Object

This class provides utils methodes


Field Summary
static String EMPTY_STRING
           
static String MESSAGE_ERROR_OCCUR
           
 
Method Summary
static Timestamp formatHour(String strHour, Locale locale)
          Get the hour from String date
static Float getFloat(String strToConvert)
          Converts a String into Float
static Integer getInteger(String strToConvert)
          Converts a String into Integer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

public static final String EMPTY_STRING
See Also:
Constant Field Values

MESSAGE_ERROR_OCCUR

public static final String MESSAGE_ERROR_OCCUR
See Also:
Constant Field Values
Method Detail

getInteger

public static Integer getInteger(String strToConvert)
Converts a String into Integer

Parameters:
strToConvert - The String object to convert into Integer
Returns:
The Integer object of the given String object or null if an error occured

getFloat

public static Float getFloat(String strToConvert)
Converts a String into Float

Parameters:
strToConvert - The String object to convert into Float
Returns:
The Float object of the given String object or null if an error occured

formatHour

public static Timestamp formatHour(String strHour,
                                   Locale locale)
Get the hour from String date

Parameters:
strHour - the date to format
locale - The Locale
Returns:
The Timestamp or null else


Copyright © 2014 Mairie de Paris. All Rights Reserved.