Java org.eclipse.jface.viewers ViewerComparator fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jface.viewers ViewerComparator fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jface.viewers ViewerComparator.

The text is from its open source code.

Subclass

org.eclipse.jface.viewers.ViewerComparator has subclasses.
Click this link to see all its subclasses.

Constructor

ViewerComparator()
Creates a new ViewerComparator , which uses the default comparator to sort strings.
ViewerComparator(Comparator comparator)
Creates a new ViewerComparator , which uses the given comparator to sort strings.

Method

intcompare(Viewer viewer, Object e1, Object e2)
Returns a negative, zero, or positive number depending on whether the first element is less than, equal to, or greater than the second element.
voidsort(final Viewer viewer, Object[] elements)
Sorts the given elements in-place, modifying the given array.