Package com.restfb.util
Class SimpleDateFormatStrategy
- java.lang.Object
-
- com.restfb.util.SimpleDateFormatStrategy
-
- All Implemented Interfaces:
DateFormatStrategy
public class SimpleDateFormatStrategy extends Object implements DateFormatStrategy
a simple DateFormat strategy. every call returns a new SimpleDateFormat object, this will be rather slow and especially in a high-performance or low resource environment you should useCachedDateFormatStrategy
- Since:
- 1.7.0
-
-
Constructor Summary
Constructors Constructor Description SimpleDateFormatStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateFormat
formatFor(String format)
fetch the DateFormat instance that is used to parse a date in the DateUtils
-
-
-
Constructor Detail
-
SimpleDateFormatStrategy
public SimpleDateFormatStrategy()
-
-
Method Detail
-
formatFor
public DateFormat formatFor(String format)
Description copied from interface:DateFormatStrategy
fetch the DateFormat instance that is used to parse a date in the DateUtils- Specified by:
formatFor
in interfaceDateFormatStrategy
- Parameters:
format
- the format pattern as string- Returns:
- a DateFormat instance
-
-