TypeConverterpublic abstract class TypeConverter extends Object Abstract base class used convert type T to another type V. This
is necessary when the value types of in animation are different
from the property type. |
Fields Summary |
---|
private Class | mFromClass | private Class | mToClass |
Constructors Summary |
---|
public TypeConverter(Class fromClass, Class toClass)
mFromClass = fromClass;
mToClass = toClass;
|
Methods Summary |
---|
public abstract V | convert(T value)Converts a value from one type to another.
| java.lang.Class | getSourceType()Returns the source conversion type.
return mFromClass;
| java.lang.Class | getTargetType()Returns the target converted type. Used by the animation system to determine
the proper setter function to call.
return mToClass;
|
|