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

Package class diagram package NumberCodeOnlyComparator
java.lang.Object
  extended by de.smartics.exceptions.code.NumberCodeOnlyComparator<T>
Type Parameters:
T - the type of objects that may be compared by this comparator.
All Implemented Interfaces:
Serializable, Comparator<T>

public class NumberCodeOnlyComparator<T extends NumberCode>
     
     
extends Object
implements Comparator<T>, Serializable

The default code comparator compares the code numerical by major and minor number.

See Also:
Serialized Form

Constructor Summary
NumberCodeOnlyComparator()
          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

NumberCodeOnlyComparator

public NumberCodeOnlyComparator()
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-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.