de.smartics.exceptions.code
Class NumberCodeComparator<T extends NumberCode>
java.lang.Object
de.smartics.exceptions.code.NumberCodeComparator<T>
-
Type Parameters:
-
T
- the type of objects that may be compared by this comparator.
-
All Implemented Interfaces:
-
Serializable,
Comparator<T>
-
public class NumberCodeComparator<T extends NumberCode>
-
extends
Object
-
implements
Comparator<T>,
Serializable
The default code comparator compares the component and then the code numerical by major and minor number.
-
See Also:
-
Serialized Form
Method Summary |
int |
compare(T o1, T o2) Compares the component identifier and then the code itself. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberCodeComparator
public NumberCodeComparator()
-
Default constructor.
compare
public int compare(T o1,
T o2)
-
Compares the component identifier and then the code itself.
-
-
Specified by:
-
compare
in interface
Comparator<T extends NumberCode>
-
Copyright © 2007-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.