com.google.code.jetm.maven.util
Class AggregateComparator

java.lang.Object
  extended by com.google.code.jetm.maven.util.AggregateComparator
All Implemented Interfaces:
Serializable, Comparator<etm.core.aggregation.Aggregate>

public class AggregateComparator
extends Object
implements Comparator<etm.core.aggregation.Aggregate>, Serializable

A Comparator that compares two Aggregate objects by their Aggregate.getName(); it will first do a case-insensitive comparison and, if the yields the same result, will return the case-sensitive comparison of their two names.

Author:
jrh3k5
See Also:
Serialized Form

Constructor Summary
AggregateComparator()
           
 
Method Summary
 int compare(etm.core.aggregation.Aggregate o1, etm.core.aggregation.Aggregate o2)
          
 
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

AggregateComparator

public AggregateComparator()
Method Detail

compare

public int compare(etm.core.aggregation.Aggregate o1,
                   etm.core.aggregation.Aggregate o2)

Specified by:
compare in interface Comparator<etm.core.aggregation.Aggregate>


Copyright © 2011. All Rights Reserved.