xbean-blueprint/src/main/java/org/apache/xbean/blueprint/generator/Type.java [44:85]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        StringBuffer buf = new StringBuffer(type.length() + (dimensions * 2));
        buf.append(type);
        for (int i = 0; i < dimensions; i ++) {
            buf.append("[]");
        }
        return new Type(buf.toString(), newSimpleType(type));
    }

    public static Type newCollectionType(String collectionType, Type elementType) {
        if (collectionType == null) throw new NullPointerException("collectionType");
        if (elementType == null) throw new NullPointerException("elementType");
        return new Type(collectionType, elementType);
    }

    private Type(String name, Type nestedType) {
        this.name = name;
        this.nestedType = nestedType;
        primitive = (nestedType == null) && primitives.contains(name);
    }

    public String getName() {
        return name;
    }

    public Type getNestedType() {
        return nestedType;
    }

    public boolean isCollection() {
        return nestedType != null;
    }

    public boolean isPrimitive() {
        return primitive;
    }

    public int hashCode() {
        return super.hashCode();
    }

    public boolean equals(Object obj) {
        return super.equals(obj);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



xbean-spring/src/main/java/org/apache/xbean/spring/generator/Type.java [44:85]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        StringBuffer buf = new StringBuffer(type.length() + (dimensions * 2));
        buf.append(type);
        for (int i = 0; i < dimensions; i ++) {
            buf.append("[]");
        }
        return new Type(buf.toString(), newSimpleType(type));
    }

    public static Type newCollectionType(String collectionType, Type elementType) {
        if (collectionType == null) throw new NullPointerException("collectionType");
        if (elementType == null) throw new NullPointerException("elementType");
        return new Type(collectionType, elementType);
    }

    private Type(String name, Type nestedType) {
        this.name = name;
        this.nestedType = nestedType;
        primitive = (nestedType == null) && primitives.contains(name);
    }

    public String getName() {
        return name;
    }

    public Type getNestedType() {
        return nestedType;
    }

    public boolean isCollection() {
        return nestedType != null;
    }

    public boolean isPrimitive() {
        return primitive;
    }

    public int hashCode() {
        return super.hashCode();
    }

    public boolean equals(Object obj) {
        return super.equals(obj);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



