gov.nih.nci.dtsrpc.client
Class SortTerm

java.lang.Object
  extended bygov.nih.nci.dtsrpc.client.SortTerm

public class SortTerm
extends java.lang.Object

Sort Term objects

Since:
DTSRPC 1.3.5
Version:
1.3.5
Author:
NGIT

Method Summary
static MatchedTerm[] sort(MatchedTerm[] terms, int first_by, int next_by)
          Sorts MatchedTerm objects by two member variables
static MatchedTerm[] sortByInt(MatchedTerm[] terms, int column_id)
          Sort MatchedTerm objects by integer values
static MatchedTerm[] sortByString(MatchedTerm[] terms, int column_id)
          Sort MatchedTerm objects by string values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sortByInt

public static MatchedTerm[] sortByInt(MatchedTerm[] terms,
                                      int column_id)
Sort MatchedTerm objects by integer values

Parameters:
terms - a vector of MatchedTerm objects
column_id - column id
Returns:
sorted MatchedTerm objects

sortByString

public static MatchedTerm[] sortByString(MatchedTerm[] terms,
                                         int column_id)
Sort MatchedTerm objects by string values

Parameters:
terms - a vector of MatchedTerm objects
column_id - column id
Returns:
sorted MatchedTerm objects

sort

public static MatchedTerm[] sort(MatchedTerm[] terms,
                                 int first_by,
                                 int next_by)
Sorts MatchedTerm objects by two member variables

Parameters:
terms - a vector of MatchedTerm objects
first_by - the index of the first member variable
next_by - the index of the second member variable
Returns:
sorted MatchedTerm objects