Style Intelligence v12.0

inetsoft.report.filter
Class NodeComparer

java.lang.Object
  extended by inetsoft.report.filter.NodeComparer
All Implemented Interfaces:
Comparator

public abstract class NodeComparer
extends Object
implements Comparator

A comparator compares two nodes.


Constructor Summary
NodeComparer(int scol, boolean asc)
          Constructor.
 
Method Summary
 int compare(Object v1, Object v2)
          Compare two group nodes.
protected abstract  Object getResult(Object obj)
          Get specified node summary value.
 
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

NodeComparer

public NodeComparer(int scol,
                    boolean asc)
Constructor.

Parameters:
scol - ths specified summary col
asc - true if ascending, false otherwise
Method Detail

compare

public int compare(Object v1,
                   Object v2)
Compare two group nodes.

Specified by:
compare in interface Comparator

getResult

protected abstract Object getResult(Object obj)
Get specified node summary value.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.