Code example for WildcardType

Methods: getUpperBounds

0
            Type paramType = type.getActualTypeArguments()[index];  
            if (paramType instanceof WildcardType) { 
                WildcardType wildcardType = (WildcardType)paramType; 
                // we really aren't prepared to deal with multiple upper bounds, 
                // so we just look at the first one. 
                return wildcardType.getUpperBounds()[0]; 
            } else { 
                return paramType; // take our chances. 
            } 
        } else { 
            return null; 
        } 
    } 
 
    @Override 
    public AegisType createDefaultType(TypeClassInfo info) { 
        QName typeName = info.getTypeName(); 
        Class<?> relatedClass = TypeUtil.getTypeRelatedClass(info.getType()); 
        if (typeName == null) { 
            typeName = createQName(relatedClass); 
Experience pair programming with AI  Get Codota for Java