/** * @since 2.9 */ public static Value forLeniency(boolean lenient) { return new Value(null, null, null, null, null, Features.empty(), Boolean.valueOf(lenient)); }
/** * @since 2.9 */ public static Value forLeniency(boolean lenient) { return new Value(null, null, null, null, null, Features.empty(), Boolean.valueOf(lenient)); }
/** * @since 2.1 */ public Value withPattern(String p) { return new Value(p, _shape, _locale, _timezoneStr, _timezone, _features, _lenient); }
/** * @since 2.9 */ public Value withLenient(Boolean lenient) { if (lenient == _lenient) { return this; } return new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, _features, lenient); }
/** * @since 2.6 */ public Value withoutFeature(JsonFormat.Feature f) { Features newFeats = _features.without(f); return (newFeats == _features) ? this : new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, newFeats, _lenient); }
/** * @since 2.6 */ public Value withFeature(JsonFormat.Feature f) { Features newFeats = _features.with(f); return (newFeats == _features) ? this : new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, newFeats, _lenient); }
/** * @since 2.1 */ public Value withTimeZone(TimeZone tz) { return new Value(_pattern, _shape, _locale, null, tz, _features, _lenient); }
/** * @since 2.1 */ public Value withShape(Shape s) { if (s == _shape) { return this; } return new Value(_pattern, s, _locale, _timezoneStr, _timezone, _features, _lenient); }
/** * @since 2.7 */ public final static Value from(JsonFormat ann) { return (ann == null) ? EMPTY : new Value(ann); }
/** * @since 2.6 */ public Value withFeature(JsonFormat.Feature f) { Features newFeats = _features.with(f); return (newFeats == _features) ? this : new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, newFeats, _lenient); }
/** * @since 2.1 */ public Value withShape(Shape s) { if (s == _shape) { return this; } return new Value(_pattern, s, _locale, _timezoneStr, _timezone, _features, _lenient); }
/** * @since 2.7 */ public final static Value from(JsonFormat ann) { return (ann == null) ? EMPTY : new Value(ann); }
/** * @since 2.1 */ public Value withTimeZone(TimeZone tz) { return new Value(_pattern, _shape, _locale, null, tz, _features, _lenient); }
/** * @since 2.6 */ public Value withoutFeature(JsonFormat.Feature f) { Features newFeats = _features.without(f); return (newFeats == _features) ? this : new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, newFeats, _lenient); }
/** * @since 2.9 */ public Value withLenient(Boolean lenient) { if (lenient == _lenient) { return this; } return new Value(_pattern, _shape, _locale, _timezoneStr, _timezone, _features, lenient); }
/** * @since 2.1 */ public Value withLocale(Locale l) { return new Value(_pattern, _shape, l, _timezoneStr, _timezone, _features, _lenient); }
/** * @since 2.7 */ public static Value forShape(Shape sh) { return new Value(null, sh, null, null, null, Features.empty(), null); }
/** * @since 2.1 */ public Value withPattern(String p) { return new Value(p, _shape, _locale, _timezoneStr, _timezone, _features, _lenient); }
/** * @since 2.6 */ public static Value forPattern(String p) { return new Value(p, null, null, null, null, Features.empty(), null); }
@Override public JsonFormat.Value findFormat(Annotated ann) { JsonFormat f = _findAnnotation(ann, JsonFormat.class); return (f == null) ? null : new JsonFormat.Value(f); }