Package com.restfb.util
Class SimpleDateFormatStrategy
java.lang.Object
com.restfb.util.SimpleDateFormatStrategy
- All Implemented Interfaces:
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 use
CachedDateFormatStrategy
- Since:
- 1.7.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfetch the DateFormat instance that is used to parse a date in the DateUtils
-
Constructor Details
-
SimpleDateFormatStrategy
public SimpleDateFormatStrategy()
-
-
Method Details
-
formatFor
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
-