File Source: WeblogCategoryPathComparator.java
/*
P/P * Method: org.apache.roller.weblogger.pojos.WeblogCategoryPathComparator__static_init
*/
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */
18
19 package org.apache.roller.weblogger.pojos;
20
21 import java.util.Comparator;
22
23
24 /**
25 * Compare weblog categories by path.
26 */
/*
P/P * Method: void org.apache.roller.weblogger.pojos.WeblogCategoryPathComparator()
*/
27 public class WeblogCategoryPathComparator implements Comparator {
28
29 public int compare(Object o1, Object o2) {
/*
P/P * Method: int compare(Object, Object)
*
* Preconditions:
* o1 != null
* o1.path != null
* init'ed(o1.pcStateManager)
* o2 != null
* init'ed(o2.path)
* init'ed(o2.pcStateManager)
* (soft) org/apache/roller/weblogger/pojos/WeblogCategory.pcInheritedFieldCount <= 232-6
*
* Postconditions:
* init'ed(return_value)
*/
30 WeblogCategory f1 = (WeblogCategory)o1;
31 WeblogCategory f2 = (WeblogCategory)o2;
32 return f1.getPath().compareTo(f2.getPath());
33 }
34
35 }
SofCheck Inspector Build Version : 2.18479
| WeblogCategoryPathComparator.java |
2009-Jan-02 14:24:54 |
| WeblogCategoryPathComparator.class |
2009-Sep-04 03:12:32 |