org.codehaus.mojo.scmchangelog.changelog
Class ReleaseAlphabeticalComparator

java.lang.Object
  extended by org.codehaus.mojo.scmchangelog.changelog.ReleaseAlphabeticalComparator
All Implemented Interfaces:
Comparator

public class ReleaseAlphabeticalComparator
extends Object
implements Comparator

Comparator to order releases alphabetically.

Version:
$Id: Release.java 7652 2008-09-11 07:58:40Z ehsavoie $
Author:
ehsavoie
See Also:
Release

Constructor Summary
ReleaseAlphabeticalComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compare two Release alphabetically.
 
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

ReleaseAlphabeticalComparator

public ReleaseAlphabeticalComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compare two Release alphabetically.

Specified by:
compare in interface Comparator
Parameters:
o1 - the first release to be compared.
o2 - the second release to be compared.
Returns:
a positive int if o1 after o2 - negative otherwise.


Copyright © 2008-2009 Codehaus. All Rights Reserved.