|
|
@@ -50,20 +50,20 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例,使用默认格式和地区
|
|
|
+ * 获得 FastDateFormat实例,使用默认格式和地区
|
|
|
*
|
|
|
- * @return {@link FastDateFormat}
|
|
|
+ * @return FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getInstance() {
|
|
|
return CACHE.getInstance();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例,使用默认地区<br>
|
|
|
+ * 获得 FastDateFormat 实例,使用默认地区<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param pattern 使用{@link java.text.SimpleDateFormat} 相同的日期格式
|
|
|
- * @return {@link FastDateFormat}
|
|
|
+ * @return FastDateFormat
|
|
|
* @throws IllegalArgumentException 日期格式问题
|
|
|
*/
|
|
|
public static FastDateFormat getInstance(final String pattern) {
|
|
|
@@ -71,12 +71,12 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param pattern 使用{@link java.text.SimpleDateFormat} 相同的日期格式
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
- * @return {@link FastDateFormat}
|
|
|
+ * @return FastDateFormat
|
|
|
* @throws IllegalArgumentException 日期格式问题
|
|
|
*/
|
|
|
public static FastDateFormat getInstance(final String pattern, final TimeZone timeZone) {
|
|
|
@@ -84,12 +84,12 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param pattern 使用{@link java.text.SimpleDateFormat} 相同的日期格式
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return {@link FastDateFormat}
|
|
|
+ * @return FastDateFormat
|
|
|
* @throws IllegalArgumentException 日期格式问题
|
|
|
*/
|
|
|
public static FastDateFormat getInstance(final String pattern, final Locale locale) {
|
|
|
@@ -97,13 +97,13 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param pattern 使用{@link java.text.SimpleDateFormat} 相同的日期格式
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return {@link FastDateFormat}
|
|
|
+ * @return FastDateFormat
|
|
|
* @throws IllegalArgumentException 日期格式问题
|
|
|
*/
|
|
|
public static FastDateFormat getInstance(final String pattern, final TimeZone timeZone, final Locale locale) {
|
|
|
@@ -112,48 +112,48 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateInstance(final int style) {
|
|
|
return CACHE.getDateInstance(style, null, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateInstance(final int style, final Locale locale) {
|
|
|
return CACHE.getDateInstance(style, null, locale);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone) {
|
|
|
return CACHE.getDateInstance(style, timeZone, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone, final Locale locale) {
|
|
|
return CACHE.getDateInstance(style, timeZone, locale);
|
|
|
@@ -161,48 +161,48 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getTimeInstance(final int style) {
|
|
|
return CACHE.getTimeInstance(style, null, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getTimeInstance(final int style, final Locale locale) {
|
|
|
return CACHE.getTimeInstance(style, null, locale);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone optional time zone, overrides time zone of formatted time
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getTimeInstance(final int style, final TimeZone timeZone) {
|
|
|
return CACHE.getTimeInstance(style, timeZone, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param style time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone optional time zone, overrides time zone of formatted time
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getTimeInstance(final int style, final TimeZone timeZone, final Locale locale) {
|
|
|
return CACHE.getTimeInstance(style, timeZone, locale);
|
|
|
@@ -210,52 +210,52 @@ public class FastDateFormat extends Format implements DateParser, DatePrinter {
|
|
|
|
|
|
// -----------------------------------------------------------------------
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle) {
|
|
|
return CACHE.getDateTimeInstance(dateStyle, timeStyle, null, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle, final Locale locale) {
|
|
|
return CACHE.getDateTimeInstance(dateStyle, timeStyle, null, locale);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone) {
|
|
|
return getDateTimeInstance(dateStyle, timeStyle, timeZone, null);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 获得 {@link FastDateFormat} 实例<br>
|
|
|
+ * 获得 FastDateFormat 实例<br>
|
|
|
* 支持缓存
|
|
|
*
|
|
|
* @param dateStyle date style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeStyle time style: FULL, LONG, MEDIUM, or SHORT
|
|
|
* @param timeZone 时区{@link TimeZone}
|
|
|
* @param locale {@link Locale} 日期地理位置
|
|
|
- * @return 本地化 {@link FastDateFormat}
|
|
|
+ * @return 本地化 FastDateFormat
|
|
|
*/
|
|
|
public static FastDateFormat getDateTimeInstance(final int dateStyle, final int timeStyle, final TimeZone timeZone, final Locale locale) {
|
|
|
return CACHE.getDateTimeInstance(dateStyle, timeStyle, timeZone, locale);
|