public void reverse(int from, int to) { synchronized (mutex) { list.reverse(from, to); } }
public void reverse() { synchronized (mutex) { list.reverse(); } }