public class TypedValue
extends java.lang.Object
getClass()
call on the object.Modifier and Type | Field and Description |
---|---|
static TypedValue |
NULL |
private TypeDescriptor |
typeDescriptor |
private java.lang.Object |
value |
Constructor and Description |
---|
TypedValue(java.lang.Object value)
Create a TypedValue for a simple object.
|
TypedValue(java.lang.Object value,
TypeDescriptor typeDescriptor)
Create a TypedValue for a particular value with a particular type descriptor.
|
Modifier and Type | Method and Description |
---|---|
TypeDescriptor |
getTypeDescriptor() |
java.lang.Object |
getValue() |
java.lang.String |
toString() |
public static final TypedValue NULL
private final java.lang.Object value
private TypeDescriptor typeDescriptor
public TypedValue(java.lang.Object value)
value
- the object valuepublic TypedValue(java.lang.Object value, TypeDescriptor typeDescriptor)
value
- the object valuetypeDescriptor
- a type descriptor describing the type of the valuepublic java.lang.Object getValue()
public TypeDescriptor getTypeDescriptor()
public java.lang.String toString()
toString
in class java.lang.Object