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

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.jface.viewers
Interface IElementComparer


public interface IElementComparer

This interface is used to compare elements in a viewer for equality, and to provide the hash code for an element. This allows the client of the viewer to specify different equality criteria and a different hash code implementation than the equals and hashCode implementations of the elements themselves.

See Also:
StructuredViewer.setComparer(org.eclipse.jface.viewers.IElementComparer)

Method Summary
 boolean equals ( Object a, Object b)
          Compares two elements for equality
 int hashCode ( Object element)
          Returns the hash code for the given element.
 

Method Detail

equals

boolean equals(
Object a,
               
Object b)
Compares two elements for equality

Parameters:
a - the first element
b - the second element
Returns:
whether a is equal to b

hashCode

int hashCode(
Object element)
Returns the hash code for the given element.

Parameters:
element - the element the hash code is calculated for
Returns:
the hash code for the given element

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