de.smartics.exceptions.report.sort
Class MixedCodeComparator
java.lang.Object
de.smartics.exceptions.report.sort.MixedCodeComparator
-
All Implemented Interfaces:
-
Comparator<
ExceptionCodeReportItem>
-
public final class MixedCodeComparator
-
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
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final MixedCodeComparator INSTANCE
-
Singleton instance for reuse.
MixedCodeComparator
public MixedCodeComparator()
-
Default constructor.
Consider to use the singleton
.
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.