Class Collections2


  • public final class Collections2
    extends java.lang.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 Summary

      Constructors 
      Modifier Constructor Description
      private Collections2()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> java.util.Collection<T> cast​(java.lang.Iterable<T> iterable)
      Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Collections2

        private Collections2()
    • Method Detail

      • cast

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