@ SuppressWarnings ( "unchecked" ) static < T , A extends BindingCollectionAdapter < T > > A createClass ( Class < ? extends BindingCollectionAdapter > adapterClass , ItemBinding < T > itemBinding ) { try { return ( A ) adapterClass . getConstructor ( ItemBinding . class ) . newInstance ( itemBinding ) ; } catch ( Exception e1 ) { throw new RuntimeException ( e1 ) ; } }
Constructs a binding adapter class from it s class name using reflection .