1 package com.github.davidmoten.guavamini;
2
3 import java.util.Collection;
4
5 public final class Collections2 {
6
7 private Collections2() {
8 // prevent instantiation
9 }
10
11 /**
12 * Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557
13 *
14 * @param iterable
15 * input
16 * @param <T>
17 * generic type of collection
18 * @return input cast as collection
19 */
20 static <T> Collection<T> cast(Iterable<T> iterable) {
21 return (Collection<T>) iterable;
22 }
23 }