//# 0 errors, 29 messages
//#
/*
    //#TagStatComparator.java:1:1: class: org.apache.roller.weblogger.pojos.TagStatComparator
    //#TagStatComparator.java:1:1: method: org.apache.roller.weblogger.pojos.TagStatComparator.org.apache.roller.weblogger.pojos.TagStatComparator__static_init
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */
package org.apache.roller.weblogger.pojos;

import java.io.Serializable;
import java.util.Comparator;

/**
 * @author Elias Torres (<a href="mailto:eliast@us.ibm.com">eliast@us.ibm.com</a>)
 *
 */
public class TagStatComparator implements Comparator, Serializable {

    private static final long serialVersionUID = -3272396777374523757L;

    /**
     * 
     */
    public TagStatComparator() {
    //#TagStatComparator.java:34: method: void org.apache.roller.weblogger.pojos.TagStatComparator.org.apache.roller.weblogger.pojos.TagStatComparator()

    }
    //#TagStatComparator.java:36: end of method: void org.apache.roller.weblogger.pojos.TagStatComparator.org.apache.roller.weblogger.pojos.TagStatComparator()

    /* (non-Javadoc)
     * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
     */
    public int compare(Object obj1, Object obj2) throws ClassCastException {
        TagStat st1 = (TagStat) obj1;
    //#TagStatComparator.java:42: method: int org.apache.roller.weblogger.pojos.TagStatComparator.compare(Object, Object)
    //#input(int compare(Object, Object)): obj1
    //#input(int compare(Object, Object)): obj1.__Tag
    //#input(int compare(Object, Object)): obj1.name
    //#input(int compare(Object, Object)): obj2
    //#input(int compare(Object, Object)): obj2.__Tag
    //#input(int compare(Object, Object)): obj2.name
    //#input(int compare(Object, Object)): org/apache/roller/weblogger/pojos/TagStat.__Descendant_Table[org/apache/roller/weblogger/pojos/TagStat]
    //#input(int compare(Object, Object)): org/apache/roller/weblogger/pojos/TagStat.__Descendant_Table[others]
    //#input(int compare(Object, Object)): org/apache/roller/weblogger/pojos/TagStat.__Dispatch_Table.getName()Ljava/lang/String;
    //#output(int compare(Object, Object)): return_value
    //#pre[1] (int compare(Object, Object)): obj1 != null
    //#pre[2] (int compare(Object, Object)): obj1.__Tag == org/apache/roller/weblogger/pojos/TagStat
    //#pre[3] (int compare(Object, Object)): obj1.name != null
    //#pre[4] (int compare(Object, Object)): obj2 != null
    //#pre[5] (int compare(Object, Object)): obj2.__Tag == org/apache/roller/weblogger/pojos/TagStat
    //#pre[6] (int compare(Object, Object)): init'ed(obj2.name)
    //#post(int compare(Object, Object)): init'ed(return_value)
        TagStat st2 = (TagStat) obj2;
        return st1.getName().compareToIgnoreCase(st2.getName());
    //#TagStatComparator.java:44: end of method: int org.apache.roller.weblogger.pojos.TagStatComparator.compare(Object, Object)
    }

}
    //#output(org.apache.roller.weblogger.pojos.TagStatComparator__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/TagStatComparator]
    //#output(org.apache.roller.weblogger.pojos.TagStatComparator__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I
    //#post(org.apache.roller.weblogger.pojos.TagStatComparator__static_init): __Descendant_Table[org/apache/roller/weblogger/pojos/TagStatComparator] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.pojos.TagStatComparator__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I == &compare
    //#TagStatComparator.java:: end of method: org.apache.roller.weblogger.pojos.TagStatComparator.org.apache.roller.weblogger.pojos.TagStatComparator__static_init
    //#TagStatComparator.java:: end of class: org.apache.roller.weblogger.pojos.TagStatComparator
