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< CodeUtils.CodeContainer>

public class CodeComparator
     
     
extends Object
implements Comparator< CodeUtils.CodeContainer>

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

Author:
Robert Reiner
See Also:
DefaultCodeComparator

Constructor Summary
CodeComparator()
          Default constructor.
 
Method Summary
 int compare(CodeUtils.CodeContainer o1, CodeUtils.CodeContainer 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(CodeUtils.CodeContainer o1,
                   CodeUtils.CodeContainer o2)

Uses DefaultCodeComparator to compare codes.

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


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