Code example for WildcardType

Methods: getLowerBoundsgetUpperBounds

        public boolean equals(Object obj) {
            if (obj instanceof WildcardType) {
                WildcardType that = (WildcardType) obj;
                return Arrays.equals(that.getLowerBounds(),lb)
                    && Arrays.equals(that.getUpperBounds(),ub);
            return false; 
    public static Type getTypeArgument(Type type, int i) {
        if (type instanceof ParameterizedType) {
            ParameterizedType p = (ParameterizedType) type;
            return fix(p.getActualTypeArguments()[i]);
        } else 
            throw new IllegalArgumentException();
Stop searching for code, let great code find you!  Add Codota to your java IDE