org.quattor.pan
Class Compiler.ThrowableComparator

java.lang.Object
  extended by org.quattor.pan.Compiler.ThrowableComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator<java.lang.Throwable>
Enclosing class:
Compiler

public static class Compiler.ThrowableComparator
extends java.lang.Object
implements java.io.Serializable, java.util.Comparator<java.lang.Throwable>

This class orders Throwables allowing duplicates to be removed. It orders them based on their system identity hash code. The implementation will not handle null values gracefully and will throw a NPE.

Author:
loomis
See Also:
Serialized Form

Constructor Summary
Compiler.ThrowableComparator()
           
 
Method Summary
 int compare(java.lang.Throwable o1, java.lang.Throwable 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
 

Constructor Detail

Compiler.ThrowableComparator

public Compiler.ThrowableComparator()
Method Detail

compare

public int compare(java.lang.Throwable o1,
                   java.lang.Throwable o2)
Specified by:
compare in interface java.util.Comparator<java.lang.Throwable>


Copyright © 2011 Quattor. All Rights Reserved.