org.apache.log4j.chainsaw
Class ColumnComparator

java.lang.Object
  extended by org.apache.log4j.chainsaw.ColumnComparator
All Implemented Interfaces:
java.util.Comparator

public class ColumnComparator
extends java.lang.Object
implements java.util.Comparator

Author:
Claude Duguay, Paul Smith , Scott Deboy

Field Summary
protected  boolean ascending
           
protected  java.lang.String columnName
           
protected  int index
           
 
Constructor Summary
ColumnComparator(java.lang.String columnName, int index, boolean ascending)
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object 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

index

protected int index

ascending

protected boolean ascending

columnName

protected java.lang.String columnName
Constructor Detail

ColumnComparator

public ColumnComparator(java.lang.String columnName,
                        int index,
                        boolean ascending)
Method Detail

compare

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


Copyright © 2007 Apache Software Foundation. All Rights Reserved.