info.magnolia.module.model
Class VersionComparator

java.lang.Object
  extended by 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.


Constructor Summary
VersionComparator()
           
 
Method Summary
 int compare(Version v1, Version v2)
           
 
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(Version v1,
                   Version v2)
Specified by:
compare in interface Comparator<Version>


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.