类 TypedValue
- java.lang.Object
- org.springframework.expression.TypedValue
- 直接已知子类:
BooleanTypedValue
public class TypedValue extends Object
Encapsulates an object and aTypeDescriptor
that describes it. The type descriptor can contain generic declarations that would not be accessible through a simplegetClass()
call on the object.- 从以下版本开始:
- 3.0
- 作者:
- Andy Clement, Juergen Hoeller
字段概要
字段 修饰符和类型 字段 说明 static TypedValue
NULL
构造器概要
构造器 构造器 说明 TypedValue(Object value)
Create aTypedValue
for a simple object.TypedValue(Object value, TypeDescriptor typeDescriptor)
Create aTypedValue
for a particular value with a particularTypeDescriptor
which may contain additional generic declarations.
字段详细资料
NULL
public static final TypedValue NULL
构造器详细资料
TypedValue
public TypedValue(Object value)
Create aTypedValue
for a simple object. TheTypeDescriptor
is inferred from the object, so no generic declarations are preserved.- 参数:
value
- the object value
TypedValue
public TypedValue(Object value, TypeDescriptor typeDescriptor)
Create aTypedValue
for a particular value with a particularTypeDescriptor
which may contain additional generic declarations.- 参数:
value
- the object valuetypeDescriptor
- a type descriptor describing the type of the value