drasys.or.alg
Interface SortI

All Known Implementing Classes:
QuickSort

public interface SortI

An interface used by algorithms to access sort algorithms.


Method Summary
 CompareI getCompare()
          Gets the comparison object.
 void setAscending()
          Sets order to ascending.
 void setCompare(CompareI compare)
          Sets the comparison object.
 void setDescending()
          Sets order to descending.
 void sort(byte[] array)
          Sort the array elements.
 void sort(byte[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(double[] array)
          Sort the array elements.
 void sort(double[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(float[] array)
          Sort the array elements.
 void sort(float[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(int[] array)
          Sort the array elements.
 void sort(int[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(long[] array)
          Sort the array elements.
 void sort(long[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(java.lang.Object[] array)
          Sort the array elements.
 void sort(java.lang.Object[] array, int from, int to)
          Sort the vector objects between beginning with 'from' ending with 'to'.
 void sort(short[] array)
          Sort the array elements.
 void sort(short[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(java.lang.String[] array)
          Sort the array elements.
 void sort(java.lang.String[] array, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(java.util.Vector vector)
          Sort the vector objects.
 void sort(VectorI vector)
          Sort the vector elements.
 void sort(VectorI vector, int from, int to)
          Sort the elements beginning with 'from' ending with 'to'.
 void sort(java.util.Vector vector, int from, int to)
          Sort the vector objects between beginning with 'from' ending with 'to'.
 

Method Detail

setCompare

public void setCompare(CompareI compare)
Sets the comparison object.

getCompare

public CompareI getCompare()
Gets the comparison object.

setDescending

public void setDescending()
Sets order to descending.

setAscending

public void setAscending()
Sets order to ascending.

sort

public void sort(java.util.Vector vector)
Sort the vector objects.

sort

public void sort(java.util.Vector vector,
                 int from,
                 int to)
Sort the vector objects between beginning with 'from' ending with 'to'.

sort

public void sort(java.lang.Object[] array)
Sort the array elements.

sort

public void sort(java.lang.Object[] array,
                 int from,
                 int to)
Sort the vector objects between beginning with 'from' ending with 'to'.

sort

public void sort(long[] array)
Sort the array elements.

sort

public void sort(long[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(int[] array)
Sort the array elements.

sort

public void sort(int[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(double[] array)
Sort the array elements.

sort

public void sort(double[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(java.lang.String[] array)
Sort the array elements.

sort

public void sort(java.lang.String[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(VectorI vector)
Sort the vector elements.

sort

public void sort(VectorI vector,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(short[] array)
Sort the array elements.

sort

public void sort(short[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(byte[] array)
Sort the array elements.

sort

public void sort(byte[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.

sort

public void sort(float[] array)
Sort the array elements.

sort

public void sort(float[] array,
                 int from,
                 int to)
Sort the elements beginning with 'from' ending with 'to'.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com