Class Collections2

java.lang.Object
com.google.api.client.util.Collections2

public final class Collections2 extends Object
Static utility methods pertaining to Collection instances.

NOTE: this is a copy of a subset of Guava's Collections2. The implementation must match as closely as possible to Guava's implementation.

Since:
1.14
  • Constructor Details

    • Collections2

      private Collections2()
  • Method Details

    • cast

      static <T> Collection<T> cast(Iterable<T> iterable)
      Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557.