MCPcopy Create free account
hub / github.com/antlr/codebuff / size

Method size

output/java_guava/1.4.18/Iterables.java:113–117  ·  view source on GitHub ↗

Returns the number of elements in iterable.

(Iterable<?> iterable)

Source from the content-addressed store, hash-verified

111
112
113 public static int size(Iterable<?> iterable) {
114 return (iterable instanceof Collection)
115 ? ((Collection<?>) iterable).size()
116 : Iterators.size(iterable.iterator());
117 }
118
119 /**
120 * Returns {@code true} if {@code iterable} contains any object for which {@code equals(element)}

Callers 1

sizeMethod · 0.95

Calls 3

sizeMethod · 0.95
sizeMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected