info.magnolia.module.model
Class VersionComparator
java.lang.Object
info.magnolia.module.model.VersionComparator
- All Implemented Interfaces:
- Comparator<Version>
public class VersionComparator
- extends Object
- implements Comparator<Version>
A simple Comparator that compares Version instances and ignores their classifier.
Does not handle nulls.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VersionComparator
public VersionComparator()
compare
public int compare(Version v1,
Version v2)
- Specified by:
compare
in interface Comparator<Version>
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.