Code example for WildcardType

Methods: getLowerBoundsgetUpperBounds

0
     * 
     * @param wtype the WildcardType to fetch the bounds of 
     * @return the appropriate bound type 
     */ 
    protected Type getWildcardTypeBound(WildcardType wtype) {
        Type[] bounds = wtype.getLowerBounds();
        if (bounds.length == 0) {
            bounds = wtype.getUpperBounds();
        } 
 
        if (bounds.length > 0) {
            return bounds[0];
        } 
 
        return null; 
    } 
 
    /** 
     * Fetches the type of value that can be get/set with this expression evaluation. This is 
     * equivalent (though more efficient) to calling getValue().getClass().  If the type information 
Experience pair programming with AI  Get Codota for Java