de.uni_paderborn.fujaba.asg
Class ASGElement.SortByNameComparator

java.lang.Object
  extended byde.uni_paderborn.fujaba.asg.ASGElement.SortByNameComparator
All Implemented Interfaces:
java.util.Comparator
Enclosing class:
ASGElement

public static class ASGElement.SortByNameComparator
extends java.lang.Object
implements java.util.Comparator

Comparator for sorting ASGElements by name

Version:
$Revision: 1.112.2.7 $ $Date: 2005/11/30 12:05:53 $
Author:
$Author: fklar $

Constructor Summary
ASGElement.SortByNameComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares its two ASGElements for ordering by name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ASGElement.SortByNameComparator

public ASGElement.SortByNameComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares its two ASGElements for ordering by name.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - the first object to be compared.
o2 - the second object to be compared.
Returns:
a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Throws:
java.lang.ClassCastException - if the arguments' types prevent them from being compared by this Comparator.