reverse

public static void reverse(List<? extends 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