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 java.lang.Object

This class provides utils methodes


Field Summary
static java.lang.String EMPTY_STRING
           
static java.lang.String MESSAGE_ERROR_OCCUR
           
 
Method Summary
static java.sql.Timestamp formatHour(java.lang.String strHour, java.util.Locale locale)
          Get the hour from String date
static java.lang.Float getFloat(java.lang.String strToConvert)
          Converts a String into Float
static java.lang.Integer getInteger(java.lang.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 java.lang.String EMPTY_STRING
See Also:
Constant Field Values

MESSAGE_ERROR_OCCUR

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

getInteger

public static java.lang.Integer getInteger(java.lang.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 java.lang.Float getFloat(java.lang.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 java.sql.Timestamp formatHour(java.lang.String strHour,
                                            java.util.Locale locale)
Get the hour from String date

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.