Enum Jackson
- All Implemented Interfaces:
Serializable, Comparable<Jackson>, java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TfromJsonString(String json, Class<T> clazz) Returns the deserialized object from the given json string and target class; or null if the given json string is null.static com.fasterxml.jackson.databind.ObjectMapperstatic com.fasterxml.jackson.databind.ObjectWriterstatic com.fasterxml.jackson.databind.ObjectWriterstatic com.fasterxml.jackson.core.JsonGeneratorjsonGeneratorOf(Writer writer) static com.fasterxml.jackson.databind.JsonNodejsonNodeOf(String json) static <T> Tstatic StringtoJsonPrettyString(Object value) static StringtoJsonString(Object value) static JacksonReturns the enum constant of this type with the specified name.static Jackson[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toJsonPrettyString
-
toJsonString
-
fromJsonString
-
jsonNodeOf
-
jsonGeneratorOf
public static com.fasterxml.jackson.core.JsonGenerator jsonGeneratorOf(Writer writer) throws IOException - Throws:
IOException
-
loadFrom
- Throws:
IOException
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper() -
getWriter
public static com.fasterxml.jackson.databind.ObjectWriter getWriter() -
getPrettywriter
public static com.fasterxml.jackson.databind.ObjectWriter getPrettywriter()
-