de.matthias_burbach.deputy.core.project
Class VersionComparator

java.lang.Object
  extended byde.matthias_burbach.deputy.core.project.VersionComparator
All Implemented Interfaces:
java.util.Comparator

public class VersionComparator
extends java.lang.Object
implements java.util.Comparator

Compares versions of Maven projects.

Author:
Matthias Burbach

Constructor Summary
VersionComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          

Note: o1 and o2 must both be instances of String.

 
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

VersionComparator

public VersionComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)

Note: o1 and o2 must both be instances of String.

Comparison is such that newer versions are sorted to the tops of lists.

Specified by:
compare in interface java.util.Comparator


Copyright © 2005-2007 . All Rights Reserved.