public class TypedValue
extends java.lang.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.| Modifier and Type | Field and Description |
|---|---|
static TypedValue |
NULL |
| Constructor and Description |
|---|
TypedValue(java.lang.Object value)
Create a
TypedValue for a simple object. |
TypedValue(java.lang.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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
org.springframework.core.convert.TypeDescriptor |
getTypeDescriptor() |
java.lang.Object |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
public static final TypedValue NULL
public TypedValue(java.lang.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(java.lang.Object value,
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 valuepublic java.lang.Object getValue()
public org.springframework.core.convert.TypeDescriptor getTypeDescriptor()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object