/** * Method for constructing and returning a new instance with different * {@link DateFormat} * to use. *<p> * NOTE: non-final since <code>SerializationConfig</code> needs to override this */ public T with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
@Override public DeserializationConfig with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
/** * Method for constructing and returning a new instance with different * {@link DateFormat} * to use. *<p> * NOTE: non-final since <code>SerializationConfig</code> needs to override this */ public T with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
@Override public DeserializationConfig with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
@Override public DeserializationConfig with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
@Override public DeserializationConfig with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
@Override public DeserializationConfig with(DateFormat df) { return _withBase(_base.withDateFormat(df)); }
/** * In addition to constructing instance with specified date format, * will enable or disable <code>SerializationFeature.WRITE_DATES_AS_TIMESTAMPS</code> * (enable if format set as null; disable if non-null) */ @Override public SerializationConfig with(DateFormat df) { SerializationConfig cfg = new SerializationConfig(this, _base.withDateFormat(df)); // Also need to toggle this feature based on existence of date format: if (df == null) { cfg = cfg.with(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } else { cfg = cfg.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } return cfg; }
/** * In addition to constructing instance with specified date format, * will enable or disable <code>SerializationFeature.WRITE_DATES_AS_TIMESTAMPS</code> * (enable if format set as null; disable if non-null) */ @Override public SerializationConfig with(DateFormat df) { SerializationConfig cfg = new SerializationConfig(this, _base.withDateFormat(df)); // Also need to toggle this feature based on existence of date format: if (df == null) { cfg = cfg.with(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } else { cfg = cfg.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } return cfg; }
/** * In addition to constructing instance with specified date format, * will enable or disable <code>SerializationFeature.WRITE_DATES_AS_TIMESTAMPS</code> * (enable if format set as null; disable if non-null) */ @Override public SerializationConfig with(DateFormat df) { SerializationConfig cfg = new SerializationConfig(this, _base.withDateFormat(df)); // Also need to toggle this feature based on existence of date format: if (df == null) { cfg = cfg.with(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } else { cfg = cfg.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } return cfg; }
/** * In addition to constructing instance with specified date format, * will enable or disable <code>SerializationFeature.WRITE_DATES_AS_TIMESTAMPS</code> * (enable if format set as null; disable if non-null) */ @Override public SerializationConfig with(DateFormat df) { SerializationConfig cfg = new SerializationConfig(this, _base.withDateFormat(df)); // Also need to toggle this feature based on existence of date format: if (df == null) { cfg = cfg.with(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } else { cfg = cfg.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } return cfg; }
/** * In addition to constructing instance with specified date format, * will enable or disable <code>SerializationFeature.WRITE_DATES_AS_TIMESTAMPS</code> * (enable if format set as null; disable if non-null) */ @Override public SerializationConfig with(DateFormat df) { SerializationConfig cfg = new SerializationConfig(this, _base.withDateFormat(df)); // Also need to toggle this feature based on existence of date format: if (df == null) { cfg = cfg.with(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } else { cfg = cfg.without(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); } return cfg; }