Package org.springframework.expression
Class TypedValue
java.lang.Object
org.springframework.expression.TypedValue
- Direct Known Subclasses:
BooleanTypedValue
Encapsulates an object and a
TypeDescriptor
that describes it.
The type descriptor can contain generic declarations that would not
be accessible through a simple getClass()
call on the object.
- Since:
- 3.0
- Author:
- Andy Clement, Juergen Hoeller
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTypedValue
(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. -
Method Summary
-
Field Details
-
NULL
TypedValue
fornull
.
-
-
Constructor Details
-
TypedValue
Create aTypedValue
for a simple object. TheTypeDescriptor
is inferred from the object, so no generic declarations are preserved.- Parameters:
value
- the object value
-
TypedValue
Create aTypedValue
for a particular value with a particularTypeDescriptor
which may contain additional generic declarations.- Parameters:
value
- the object valuetypeDescriptor
- a type descriptor describing the type of the value
-
-
Method Details