Android APIs
public abstract class

TypeConverter

extends Object
java.lang.Object
   ↳ android.animation.TypeConverter<T, V>
Known Direct Subclasses

Class Overview

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.

Summary

Public Constructors
TypeConverter(Class<T> fromClass, Class<V> toClass)
Public Methods
abstract V convert(T value)
Converts a value from one type to another.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TypeConverter (Class<T> fromClass, Class<V> toClass)

Added in API level 21

Public Methods

public abstract V convert (T value)

Added in API level 21

Converts a value from one type to another.

Parameters
value The Object to convert.
Returns
  • A value of type V, converted from value.