public class TypedValue extends Object
TypeDescriptor that describes it.
The type descriptor can contain generic declarations that would not
be accessible through a simple getClass() call on the object.| 限定符和类型 | 字段和说明 |
|---|---|
static TypedValue |
NULL |
| 构造器和说明 |
|---|
TypedValue(Object value)
Create a
TypedValue for a simple object. |
TypedValue(Object value,
org.springframework.core.convert.TypeDescriptor typeDescriptor)
Create a
TypedValue for a particular value with a particular
TypeDescriptor which may contain additional generic declarations. |
public static final TypedValue NULL
public TypedValue(@Nullable
Object value)
TypedValue for a simple object. The TypeDescriptor
is inferred from the object, so no generic declarations are preserved.value - the object valuepublic TypedValue(@Nullable
Object value,
@Nullable
org.springframework.core.convert.TypeDescriptor typeDescriptor)
TypedValue for a particular value with a particular
TypeDescriptor which may contain additional generic declarations.value - the object valuetypeDescriptor - a type descriptor describing the type of the value@Nullable public Object getValue()
@Nullable public org.springframework.core.convert.TypeDescriptor getTypeDescriptor()