public interface ArrayExchanger
Exchanging interface, designed for exchanging (swapping) two elements in some data array.
The basic method
of this interface works with indexes of the exchanged elements in the array.
So, every object, implementing this interface, is supposed to be working with some fixed linear data array.
The method of storing data in the array can be any; for example, it can be an
updatable AlgART array or a usual Java array.
The length of the array is limited only by 263−1 (maximal possible value for long
This interface is used by
UpdatableArray interface extends this interface.