public class BeanUtil
extends java.lang.Object
Constructor and Description |
---|
BeanUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getDefaultValue(JavaType type)
Accessor used to find out "default value" to use for comparing values to
serialize, to determine whether to exclude value from serialization with
inclusion type of
JsonInclude.Include.NON_DEFAULT . |
static java.lang.String |
okNameForGetter(AnnotatedMethod am,
boolean stdNaming) |
static java.lang.String |
okNameForIsGetter(AnnotatedMethod am,
java.lang.String name,
boolean stdNaming) |
static java.lang.String |
okNameForMutator(AnnotatedMethod am,
java.lang.String prefix,
boolean stdNaming) |
static java.lang.String |
okNameForRegularGetter(AnnotatedMethod am,
java.lang.String name,
boolean stdNaming) |
static java.lang.String |
okNameForSetter(AnnotatedMethod am,
boolean stdNaming)
Deprecated.
|
public static java.lang.String okNameForGetter(AnnotatedMethod am, boolean stdNaming)
public static java.lang.String okNameForRegularGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)
public static java.lang.String okNameForIsGetter(AnnotatedMethod am, java.lang.String name, boolean stdNaming)
@Deprecated public static java.lang.String okNameForSetter(AnnotatedMethod am, boolean stdNaming)
public static java.lang.String okNameForMutator(AnnotatedMethod am, java.lang.String prefix, boolean stdNaming)
public static java.lang.Object getDefaultValue(JavaType type)
JsonInclude.Include.NON_DEFAULT
.
Default logic is such that for primitives and wrapper types for primitives, expected
defaults (0 for `int` and `java.lang.Integer`) are returned; for Strings, empty String,
and for structured (Maps, Collections, arrays) and reference types, criteria
JsonInclude.Include.NON_DEFAULT
is used.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"