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 aTypedValuefor a simple object.TypedValue(Object value, TypeDescriptor typeDescriptor) Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations. -
Method Summary
-
Field Details
-
NULL
TypedValuefornull.
-
-
Constructor Details
-
TypedValue
Create aTypedValuefor a simple object. TheTypeDescriptoris inferred from the object, so no generic declarations are preserved.- Parameters:
value- the object value
-
TypedValue
Create aTypedValuefor a particular value with a particularTypeDescriptorwhich may contain additional generic declarations.- Parameters:
value- the object valuetypeDescriptor- a type descriptor describing the type of the value
-
-
Method Details