public static < T > List < T > getReversed ( Collection < T > collection ) { List < T > reversedList = new ArrayList <> ( collection ) ; Collections . reverse ( reversedList ) ; return reversedList ; }
Gets reversed .