org.codehaus.mojo.versions.utils
Class PropertyComparator

java.lang.Object
  extended by org.codehaus.mojo.versions.utils.PropertyComparator
All Implemented Interfaces:
Comparator

public class PropertyComparator
extends Object
implements Comparator

A comparator used to sort Property instances.

Since:
1.0-beta-1

Constructor Summary
PropertyComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compares to Property instances.
 
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

PropertyComparator

public PropertyComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares to Property instances.

Specified by:
compare in interface Comparator
Parameters:
o1 - the first object
o2 - the second object.
Returns:
the comparison result
Since:
1.0-beta-1
See Also:
Comparator.compare(Object, Object)


Copyright © 2008-2011 Codehaus. All Rights Reserved.