org.rhq.core.domain.drift
Class DriftDefinitionComparator

java.lang.Object
  extended by org.rhq.core.domain.drift.DriftDefinitionComparator
All Implemented Interfaces:
Comparator<DriftDefinition>

public class DriftDefinitionComparator
extends Object
implements Comparator<DriftDefinition>

Compares two DriftDefinition objects. The comparison can either compare basedir/includes-excludes filters or ignore them. Will also compare name, interval, enabled flag.


Nested Class Summary
static class DriftDefinitionComparator.CompareMode
           
 
Constructor Summary
DriftDefinitionComparator(DriftDefinitionComparator.CompareMode mode)
           
 
Method Summary
 int compare(DriftDefinition dc1, DriftDefinition dc2)
           
 
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

DriftDefinitionComparator

public DriftDefinitionComparator(DriftDefinitionComparator.CompareMode mode)
Method Detail

compare

public int compare(DriftDefinition dc1,
                   DriftDefinition dc2)
Specified by:
compare in interface Comparator<DriftDefinition>


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.