protected void checkCollectionType(Collection c) {
        if (type != null) {
            for (Object element : c) {
                checkType(element);
            }
        }
    }
protected void checkCollectionType ( Collection c ) { if ( type != null ) { for ( Object element : c ) { checkType ( element ) ; } } }
Checks that each member of the given collection are of the correct
type