Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ltk.core.refactoring
Interface IRefactoringStatusEntryComparator


public interface IRefactoringStatusEntryComparator

Comparator class to compare two refactoring status entries. The general contract of this class is equivalent to the one of class Comparator from the Java Collection Framework.

This interface is intended to be implemented by clients.

Since:
3.1

Method Summary
 int compare ( RefactoringStatusEntry entry1, RefactoringStatusEntry entry2)
          Compares two refactoring status entries for order.
 

Method Detail

compare

int compare(
RefactoringStatusEntry entry1,
            
RefactoringStatusEntry entry2)
Compares two refactoring status entries for order. Returns a negative integer, zero, or a positive integer as the first status entry is less than, equal to, or greater than the second.

The implementor must ensure that sgn(compare(x, y)) == -sgn(compare(y, x)) for all x and y.

The implementor must ensure that the relation is transitive: ((compare(x, y)>0) && (compare(y, z)>0)) implies compare(x, z)>0.

Furthermore, the implementer must ensure that compare(x, y)==0 implies that sgn(compare(x, z))==sgn(compare(y, z)) for all z.

Parameters:
entry1 - the first refactoring status entry to be compared.
entry2 - the second refactoring status entry to be compared.
Returns:
a negative integer, zero, or a positive integer as the first status entry is less than, equal to, or greater than the second.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire