@ SuppressWarnings ( "unchecked" ) public static < T , C extends Collection < T > > C convert ( Object object , Class < ? > collectionClass , Class < T > componentClass ) { if ( collectionClass == null || ! Collection . class . isAssignableFrom ( collectionClass ) ) { log . fine ( "{0} does not extend collection." , collectionClass ) ; return null ; } return Cast . as ( CollectionConverter . COLLECTION ( Cast . < Class < C > > as ( collectionClass ) , componentClass ) . apply ( object ) ) ; }
Convert c .