org.wegra.util.collection.array
Class RangeSwap

java.lang.Object
  extended byorg.wegra.util.collection.array.RangeSwap

public final class RangeSwap
extends java.lang.Object

Version:
1.0.0 (2003-06-08)
Author:
wegra (Bok-Youn Lee)

Constructor Summary
RangeSwap()
           
 
Method Summary
static void swap(byte[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(char[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(double[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(float[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(int[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(long[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(java.lang.Object[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
static void swap(short[] array, int from, int length, int to)
          Swaps length elements, starting from from and to in specified array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeSwap

public RangeSwap()
Method Detail

swap

public static void swap(java.lang.Object[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(long[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(int[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(short[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(char[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(byte[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(double[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.


swap

public static void swap(float[] array,
                        int from,
                        int length,
                        int to)
Swaps length elements, starting from from and to in specified array.
Overlapped area will be swapped two times. But won't be remains origin value, cuase origin value moved other position already. So it's not area swap.