public static class JsonFormat.Value extends Object
JsonFormat
annotation.Constructor and Description |
---|
Value() |
Value(JsonFormat ann) |
Value(String p,
JsonFormat.Shape sh,
Locale l,
String tzStr,
TimeZone tz) |
Value(String p,
JsonFormat.Shape sh,
Locale l,
TimeZone tz) |
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 Value()
public Value(JsonFormat ann)
public Value(String p, JsonFormat.Shape sh, String localeStr, String tzStr)
public Value(String p, JsonFormat.Shape sh, Locale l, TimeZone tz)
public 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 © 2016 JBoss by Red Hat. All rights reserved.