-
Notifications
You must be signed in to change notification settings - Fork 16
@BindTypeVariables
xcesco edited this page Apr 6, 2018
·
1 revision
When a class has a parent hierarchy with generics, This annotation allows specifying used type variable. For example, suppose you have the following situation:
@BindType
public class TiledMapAnimation extends Parallel2Animation<TranslationFrame, TextureKeyFrame>
{ ... }
public abstract class Parallel2Animation<K0 extends KeyFrame, K1 extends KeyFrame> extends Animation<K0>
{ ... }
If you try to generate bind mapping, an error will be thrown because annotation processor can not determinate parameter type during compilation. To bind TiledMapAnimation
you have simply to use @BindTypeVariables in this way:
@BindType
@BindTypeVariables({"K0", "K1"})
public class TiledMapAnimation extends Parallel2Animation<TranslationFrame, TextureKeyFrame>
{ ... }
public abstract class Parallel2Animation<K0 extends KeyFrame, K1 extends KeyFrame> extends Animation<K0>
{ ... }
- Introduction
- Goals & Features
- Kotlin
- Immutable or Mutable Pojo
- Annotation Processor Args
- Credits
- Articles
- Benchmarks
- Setup
- Tutorial
- Usage
- Dependencies and inspirations
- Stackoverflow
- Documentation
- SQL logging
- Data source options
- Indices
- SQL Type adapter
- Global SQL Type adapter
- Constraints
- Live data: welcome Architectural components!!
- Paged Live data
- Dynamic parts
- Transactional and batch operations
- Async Transactional and batch operations
- Global transaction
- Support for immutable POJO
- Generate Content provider
- Generate Database schema generation
- Database migration
- BindSqlColumn
- BindContentProvider
- BindContentProviderEntry
- BindContentProviderPath
- BindDao
- BindDaoMany2Many
- BindDataSource
- BindDataSourceOptions
- BindDataSourceUpdateTask
- BindIndex
- BindSqlRelation
- BindSqlAdapter
- BindSqlChildSelect
- BindSqlDelete
- BindSqlDynamicOrderBy
- BindSqlDynamicWhere
- BindSqlDynamicWhereParams
- BindSqlInsert
- BindSqlPageSize
- BindSqlParam
- BindSqlSelect
- BindSqlUpdate
- BindSqlType
- BindSqlTransaction