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

Method toIterator

corpus/java/training/guava/collect/Iterables.java:998–1005  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

996 // TODO(user): Is this the best place for this? Move to fluent functions?
997 // Useful as a public method?
998 static <T> Function<Iterable<? extends T>, Iterator<? extends T>> toIterator() {
999 return new Function<Iterable<? extends T>, Iterator<? extends T>>() {
1000 @Override
1001 public Iterator<? extends T> apply(Iterable<? extends T> iterable) {
1002 return iterable.iterator();
1003 }
1004 };
1005 }
1006}

Callers 2

iteratorMethod · 0.95
iteratorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected