Class CollectionsUtils

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void reverse(List<out Object> list) Collections.reverse implementation compatible with Android M.
      • Methods inherited from class java.lang.Object

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

      • CollectionsUtils

        CollectionsUtils()
    • Method Detail

      • reverse

         static void reverse(List<out Object> list)

        Collections.reverse implementation compatible with Android M.

        Uses Collections.reverse on Android M+ and a custom implementation on Android M and below.

        Parameters:
        list - the list to reverse