oracle.jdeveloper.model
Class CategoryFilter.JProjectComparator
java.lang.Object
oracle.ide.model.DefaultFilter.SortedComparator
oracle.jdeveloper.model.CategoryFilter.JProjectComparator
- All Implemented Interfaces:
- java.util.Comparator
- Enclosing class:
- CategoryFilter
- protected static final class CategoryFilter.JProjectComparator
- extends DefaultFilter.SortedComparator
Comparator
class used to sort children of the
CategoryFilter
.
The children of this filter are always instances of CategoryFolder
. The folders are ordered numerically by category ID,
as returned by CategoryFolder.getCategory()
. The category ID
constants are defined in this class -- see, for example, #JAVA_SOURCE
. The Miscellaneous category, which is identified by
Category.UNDEFINED
, is always placed last in the order.
Method Summary |
protected int |
compareElementToElement(Element e1,
Element e2)
Template method for comparing two like Element objects in locale-sensitive collation order, representing
the third level of comparison in the compare() call
chain. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CategoryFilter.JProjectComparator
protected CategoryFilter.JProjectComparator()
compareElementToElement
protected int compareElementToElement(Element e1,
Element e2)
- Description copied from class:
DefaultFilter.SortedComparator
- Template method for comparing two like
Element
objects in locale-sensitive collation order, representing
the third level of comparison in the compare()
call
chain.
Most subclasses should not need to override this method. The
default implementation first compares the element short labels,
followed by the element long labels if the short labels were the
same.
- Overrides:
compareElementToElement
in class DefaultFilter.SortedComparator
Copyright © 1997, 2004, Oracle. All rights reserved.