com.starteam.util
Interface Sortable


public interface Sortable

Delegate object to hand to sort for call back compare.


Method Summary
 int compare(java.lang.Object a, java.lang.Object b)
          Compare object a to object b.
 java.lang.Object get(int index)
          Get the value at position index.
 int getSize()
          The size of the list.
 void set(int index, java.lang.Object o)
          Set the object at index.
 

Method Detail

compare

int compare(java.lang.Object a,
            java.lang.Object b)
Compare object a to object b.
 e.g. +1 (or any positive integer) if a > b
       0                          if a == b
      -1 (or any negative integer) if a < b
 

Parameters:
a - the first object to compare
b - the second object to compare
Returns:
int +1, 0 or -1 depending upon equality

get

java.lang.Object get(int index)
Get the value at position index.

Parameters:
index - the index
Returns:
Object at the given index

set

void set(int index,
         java.lang.Object o)
Set the object at index.

Parameters:
index - the index
o - Object to add

getSize

int getSize()
The size of the list.

Returns:
the size of the list


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.