code: public static <E> void swap(List<E> list1, List<E> list2, int index) {
          TrivialSwap.swap(list1, index, list2, index);
      }
docs: Swap all the elements of two lists at the same position. The run time of this method
  depends on the implementation of the lists since elements are removed and added in the
  lists.
  
  @param <E> the type of elements in this list.
  
  @param list1 one of the lists that will have one of its values swapped.
  @param list2 the other list that will have one of its values swapped.
  @param index the index of the lists that will have their values swapped.