MCPcopy Index your code
hub / github.com/apache/groovy / checkCollectionType

Method checkCollectionType

src/main/java/groovy/lang/Sequence.java:277–283  ·  view source on GitHub ↗

Checks that each member of the given collection are of the correct type

(Collection c)

Source from the content-addressed store, hash-verified

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

Callers 2

setMethod · 0.95
addAllMethod · 0.95

Calls 1

checkTypeMethod · 0.95

Tested by

no test coverage detected