protected static < U > Class < U > [ ] asArray ( Class < U > clazz ) { @ SuppressWarnings ( "unchecked" ) Class < U > [ ] array = new Class [ ] { clazz } ; return array ; }
Generic utility function that wraps a single class object into an array of that class type .