()
| 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 | } |