public class

TypedValue

extends Object
java.lang.Object
   ↳ org.springframework.expression.TypedValue
Known Direct Subclasses

Class Overview

Encapsulates an object and a type descriptor that describes it. The type descriptor can hold generic information that would not be accessible through a simple getClass() call on the object.

Summary

Fields
public static final TypedValue NULL
Public Constructors
TypedValue(Object value)
Create a TypedValue for a simple object.
TypedValue(Object value, TypeDescriptor typeDescriptor)
Create a TypedValue for a particular value with a particular type descriptor.
Public Methods
TypeDescriptor getTypeDescriptor()
Object getValue()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final TypedValue NULL

Public Constructors

public TypedValue (Object value)

Create a TypedValue for a simple object. The type descriptor is inferred from the object, so no generic information is preserved.

Parameters
value the object value

public TypedValue (Object value, TypeDescriptor typeDescriptor)

Create a TypedValue for a particular value with a particular type descriptor.

Parameters
value the object value
typeDescriptor a type descriptor describing the type of the value

Public Methods

public TypeDescriptor getTypeDescriptor ()

public Object getValue ()

public String toString ()