de.smartics.exceptions.report.sort
Class CodeComparator

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

public final class CodeComparator
     
     
extends Object
implements Comparator< ExceptionCodeReportItem>

Compares exception code instances. The instances are ordered by their codes natural ordering.

See Also:
DefaultCodeComparator

Constructor Summary
CodeComparator()
          Default constructor.
 
Method Summary
 int compare(ExceptionCodeReportItem o1, ExceptionCodeReportItem o2)
           Uses DefaultCodeComparator to compare codes.
 
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

CodeComparator

public CodeComparator()
Default constructor.

Method Detail

compare

public int compare(ExceptionCodeReportItem o1,
                   ExceptionCodeReportItem o2)

Uses DefaultCodeComparator to compare codes.

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.