FileDocCategorySizeDatePackage
ImplForWildcard.javaAPI DocAndroid 1.5 API2330Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.lang.reflect

ImplForWildcard

public final class ImplForWildcard extends Object implements WildcardType

Fields Summary
private final ListOfTypes
extendsBound
private final ListOfTypes
superBound
Constructors Summary
public ImplForWildcard(ListOfTypes extendsBound, ListOfTypes superBound)

        this.extendsBound = extendsBound;
        this.superBound = superBound;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if(!(o instanceof WildcardType)) {
            return false;
        }
        WildcardType that = (WildcardType) o;
        return Arrays.equals(getLowerBounds(), that.getLowerBounds()) && 
                Arrays.equals(getUpperBounds(), that.getUpperBounds());
    
public java.lang.reflect.Type[]getLowerBounds()

        return superBound.getResolvedTypes().clone();
    
public java.lang.reflect.Type[]getUpperBounds()

        return extendsBound.getResolvedTypes().clone();
    
public inthashCode()

        return 31 * Arrays.hashCode(getLowerBounds()) + 
                Arrays.hashCode(getUpperBounds());
    
public java.lang.StringtoString()

        StringBuffer sb = new StringBuffer();
        sb.append("?");
        if (extendsBound.length() > 0) {
            sb.append(" extends ").append(extendsBound);
        } else if (superBound.length() > 0) {
            sb.append(" super ").append(superBound);
        }
        return sb.toString();