org.codehaus.mojo.scmchangelog.changelog
Class ReleaseAlphabeticalComparator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReleaseAlphabeticalComparator
public ReleaseAlphabeticalComparator()
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.