01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/common/tool-lib/src/java/org/theospi/portfolio/list/tool/DecoratedEntryComparator.java $
03: * $Id: DecoratedEntryComparator.java 18070 2006-11-09 16:11:06Z chmaurer@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/
21:
22: /**
23: *
24: */package org.theospi.portfolio.list.tool;
25:
26: import org.theospi.portfolio.shared.model.SortableListObjectComparator;
27:
28: /**
29: * @author chrismaurer
30: *
31: */
32: public class DecoratedEntryComparator extends
33: SortableListObjectComparator {
34:
35: /**
36: * @param criteria
37: * @param asc
38: */
39: public DecoratedEntryComparator(String criteria, int asc) {
40: super (criteria, asc);
41: }
42:
43: /* (non-Javadoc)
44: * @see org.theospi.portfolio.shared.model.SortableListObjectComparator#compare(java.lang.Object, java.lang.Object)
45: */
46: public int compare(Object o1, Object o2) {
47: return super .compare(((DecoratedEntry) o1).getEntry(),
48: ((DecoratedEntry) o2).getEntry());
49: }
50:
51: }
|