it.unimi.dsi.fastutil
Interface Swapper


public interface Swapper

An object that can swap elements whose position is specified by integers

See Also:
Arrays.quickSort(int, int, it.unimi.dsi.fastutil.ints.IntComparator, Swapper)

Method Summary
 void swap(int a, int b)
          Swaps the data at the given positions.
 

Method Detail

swap

void swap(int a,
          int b)
Swaps the data at the given positions.

Parameters:
a - the first position to swap.
b - the second position to swap.