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,
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) |
TypeDescriptor |
getTypeDescriptor() |
java.lang.Object |
getValue() |
int |
hashCode() |
java.lang.String |
toString() |
public static final TypedValue NULL
public TypedValue(@Nullable 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(@Nullable java.lang.Object value, @Nullable 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 value@Nullable public java.lang.Object getValue()
@Nullable public 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