public enum Annotations extends Enum<Annotations>
枚举常量和说明 |
---|
JACKSON
Standard Jackson annotations, defined in Jackson core and mapper
packages
|
JAXB
Standard JAXB annotations, used in a way that approximates expected
definitions (since JAXB defines XML aspects, not all features map
well to JSON handling)
|
public static final Annotations JACKSON
public static final Annotations JAXB
public static Annotations[] values()
for (Annotations c : Annotations.values()) System.out.println(c);
public static Annotations valueOf(String name)
name
- 要返回的枚举常量的名称。如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException如果参数为空值,
- 则抛出 NullPointerException