@Override protected SimpleDateFormatPool createObject(Locale locale, String format, Object... params) throws Exception { return new SimpleDateFormatPool(format, locale); }
@Override protected SimpleDateFormatPool create(String pattern, Object... params) throws Exception { return new SimpleDateFormatPool(pattern, Locale.getDefault()); } };
public DateTimeFormat(String subPattern, Locale locale, List<? extends Listable> list, int[] range) { sdfPool = new SimpleDateFormatPool(subPattern, locale); this.subPattern = subPattern; if (list != null) { this.list = Collections.unmodifiableList(list); } this.range = range; }