de.smartics.exceptions.code
Class NumberCodeComparator<T extends NumberCode>

Package class diagram package NumberCodeComparator
java.lang.Object
  extended by 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.

Author:
Robert Reiner
See Also:
Serialized Form

Constructor Summary
NumberCodeComparator()
          Default constructor.
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

NumberCodeComparator

public NumberCodeComparator()
Default constructor.

Method Detail

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-null Kronseder & Reiner GmbH - smartics. All Rights Reserved.