public static class JsonFormat.Value extends Object
JsonFormat
annotation.Constructor and Description |
---|
JsonFormat.Value() |
JsonFormat.Value(JsonFormat ann) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
String tzStr,
TimeZone tz) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
Locale l,
TimeZone tz) |
JsonFormat.Value(String p,
JsonFormat.Shape sh,
String localeStr,
String tzStr) |
Modifier and Type | Method and Description |
---|---|
Locale |
getLocale() |
String |
getPattern() |
JsonFormat.Shape |
getShape() |
TimeZone |
getTimeZone() |
boolean |
hasLocale() |
boolean |
hasPattern() |
boolean |
hasShape() |
boolean |
hasTimeZone() |
String |
timeZoneAsString()
Alternate access (compared to
getTimeZone() ) which is useful
when caller just wants time zone id to convert, but not as JDK
provided TimeZone |
JsonFormat.Value |
withLocale(Locale l) |
JsonFormat.Value |
withPattern(String p) |
JsonFormat.Value |
withShape(JsonFormat.Shape s) |
JsonFormat.Value |
withTimeZone(TimeZone tz) |
public JsonFormat.Value()
public JsonFormat.Value(JsonFormat ann)
public JsonFormat.Value(String p, JsonFormat.Shape sh, String localeStr, String tzStr)
public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, TimeZone tz)
public JsonFormat.Value(String p, JsonFormat.Shape sh, Locale l, String tzStr, TimeZone tz)
public JsonFormat.Value withPattern(String p)
public JsonFormat.Value withShape(JsonFormat.Shape s)
public JsonFormat.Value withLocale(Locale l)
public JsonFormat.Value withTimeZone(TimeZone tz)
public String getPattern()
public JsonFormat.Shape getShape()
public Locale getLocale()
public String timeZoneAsString()
getTimeZone()
) which is useful
when caller just wants time zone id to convert, but not as JDK
provided TimeZone
public TimeZone getTimeZone()
public boolean hasShape()
public boolean hasPattern()
public boolean hasLocale()
public boolean hasTimeZone()
Copyright © 2014 FasterXML. All Rights Reserved.