org.vmguys.vmtools.utils
Class AttributeNameComparator

java.lang.Object
  |
  +--org.vmguys.vmtools.utils.AttributeNameComparator
All Implemented Interfaces:
java.util.Comparator

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

This class implements Comparator, and is used when sorting the attributes of two Elements. This allows the difference finder to locate the changes needed.


Constructor Summary
AttributeNameComparator()
          Creates a new instance of AttributeNameComparator.
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Compares two Attributes.
 
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

AttributeNameComparator

public AttributeNameComparator()
Creates a new instance of AttributeNameComparator.
Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Compares two Attributes. Throws an exception if the objects cannot be cast to Attributes.
Specified by:
compare in interface java.util.Comparator


Copyright © 2001 VM Systems, Inc. All Rights Reserved.