Package org.jvnet.hk2.generator.internal
Class DescriptorComparitor
- java.lang.Object
-
- org.jvnet.hk2.generator.internal.DescriptorComparitor
-
- All Implemented Interfaces:
Comparator<DescriptorImpl>
public class DescriptorComparitor extends Object implements Comparator<DescriptorImpl>
This is a comparator making things that don't really compare, compare. It is done to ensure that given the same set of descriptors we always return the set in the same order, which will ensure that the output of the generator is not different from run to run- Author:
- jwells
-
-
Constructor Summary
Constructors Constructor Description DescriptorComparitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(DescriptorImpl o1, DescriptorImpl o2)
-
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
-
-
-
-
Method Detail
-
compare
public int compare(DescriptorImpl o1, DescriptorImpl o2)
- Specified by:
compare
in interfaceComparator<DescriptorImpl>
-
-