public void swapElements(final int index1,final int index2){
  Collections.swap(actionList,index1,index2);
  for (  UpdateManagerListener listener : listeners) {
    listener.actionOrderChanged();
  }
}

public void swapElements ( final int index1 , final int index2 ) { Collections . swap ( actionList , index1 , index2 ) ; for ( UpdateManagerListener listener : listeners ) { listener . actionOrderChanged ( ) ; } }
swap elements at the specified location .
