Checks that each member of the given collection are of the correct type
(Collection c)
| 275 | * type |
| 276 | */ |
| 277 | protected void checkCollectionType(Collection c) { |
| 278 | if (type != null) { |
| 279 | for (Object element : c) { |
| 280 | checkType(element); |
| 281 | } |
| 282 | } |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Checks that the given object instance is of the correct type |