com.ibm.commons.iloader.node
Class DataNode.AttributeComparator

java.lang.Object
  extended by com.ibm.commons.iloader.node.DataNode.Comparator
      extended by com.ibm.commons.iloader.node.DataNode.AttributeComparator
Enclosing class:
DataNode

public static class DataNode.AttributeComparator
extends DataNode.Comparator

Compares attributes in the model


Constructor Summary
DataNode.AttributeComparator(java.lang.String attributeName)
           
DataNode.AttributeComparator(java.lang.String[] attributeNames)
           
DataNode.AttributeComparator(java.lang.String[] attributeNames, boolean ascending)
           
DataNode.AttributeComparator(java.lang.String attributeName, boolean ascending)
           
 
Method Summary
 int compare(DataNode node, java.lang.Object o1, java.lang.Object o2)
           
 int compare(java.lang.String v1, java.lang.String v2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataNode.AttributeComparator

public DataNode.AttributeComparator(java.lang.String[] attributeNames,
                                    boolean ascending)

DataNode.AttributeComparator

public DataNode.AttributeComparator(java.lang.String[] attributeNames)

DataNode.AttributeComparator

public DataNode.AttributeComparator(java.lang.String attributeName)

DataNode.AttributeComparator

public DataNode.AttributeComparator(java.lang.String attributeName,
                                    boolean ascending)
Method Detail

compare

public int compare(DataNode node,
                   java.lang.Object o1,
                   java.lang.Object o2)
Specified by:
compare in class DataNode.Comparator

compare

public int compare(java.lang.String v1,
                   java.lang.String v2)