de.smartics.exceptions.report.sort
Class MixedComponentCodeComparator

Package class diagram package MixedComponentCodeComparator
java.lang.Object
  extended by de.smartics.exceptions.report.sort.MixedComponentCodeComparator
All Implemented Interfaces:
Comparator< ExceptionCodeReportItem>

public final class MixedComponentCodeComparator
     
     
extends Object
implements Comparator< ExceptionCodeReportItem>

Compares exception code information instances. The instances are ordered by their codes. This implementation takes care if the code stored is a simple Code or a NumberCode.


Field Summary
static MixedComponentCodeComparator INSTANCE
          Singleton instance for reuse.
 
Constructor Summary
MixedComponentCodeComparator()
          Default constructor.
 
Method Summary
 int compare(ExceptionCodeReportItem o1, ExceptionCodeReportItem 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
 

Field Detail

INSTANCE

public static final MixedComponentCodeComparator INSTANCE
Singleton instance for reuse.

Constructor Detail

MixedComponentCodeComparator

public MixedComponentCodeComparator()
Default constructor.

Consider to use the singleton.

Method Detail

compare

public int compare(ExceptionCodeReportItem o1,
                   ExceptionCodeReportItem o2)

Specified by:
compare in interface Comparator<ExceptionCodeReportItem>
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.