当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
OrderComparator (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.core
Class OrderComparator
java.lang.Object
org.springframework.core.OrderComparator
- All Implemented Interfaces:
- Comparator
public class OrderComparator
- extends Object
- implements Comparator
Comparator implementation for Ordered objects,
sorting by order value ascending (resp. by priority descending).
Non-Ordered objects are treated as greatest order values,
thus ending up at the end of the list, in arbitrary order
(just like same order values of Ordered objects).
- Since:
- 07.04.2003
- Author:
- Juergen Hoeller
- See Also:
Ordered
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrderComparator
public OrderComparator()
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator
Copyright (c) 2002-2007 The Spring Framework Project.