TypeConverter
abstract class TypeConverter<T, V>
BidirectionalTypeConverter |
Abstract base class used convert type T to another type V and back again. |
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.
| Parameters | |
|---|---|
<T> |
type T. It can be converted to type V |
<V> |
type V. It can be converted from type T |
| See also | |
|---|---|
setConverter |
Summary
Public constructors |
|---|
TypeConverter(fromClass: Class<T!>, toClass: Class<V!>)Constructor for creating a type converter instance that converts type T to another type V. |
Public functions |
|
|---|---|
abstract V |
convert(value: T)Converts a value from one type to another. |
Public constructors
TypeConverter
TypeConverter(fromClass: Class<T!>, toClass: Class<V!>)
Constructor for creating a type converter instance that converts type T to another type V.
Public functions
convert
abstract fun convert(value: T): V
Converts a value from one type to another.
| Parameters | |
|---|---|
value: T |
The Object to convert. |
| Returns | |
|---|---|
V |
A value of type V, converted from |