public static Type getBound ( WildcardType wildcardType ) { Type [ ] lowerBounds = wildcardType . getLowerBounds ( ) ; if ( lowerBounds . length != 0 ) { return lowerBounds [ 0 ] ; } return wildcardType . getUpperBounds ( ) [ 0 ] ; }
Returns the only bound of the given wildcard type .