Class StrictConfigurationComparator

java.lang.Object
org.apache.commons.configuration.StrictConfigurationComparator
All Implemented Interfaces:
ConfigurationComparator

Strict comparator for configurations.
Since:
1.0
Version:
$Id: StrictConfigurationComparator.java 1210177 2011-12-04 18:58:19Z oheger $
Author:
Herve Quiroz, Yoav Shapira
  • Constructor Details

  • Method Details

    • compare

      public boolean compare(Configuration a, Configuration b)
      Compare two configuration objects.
      Specified by:
      compare in interface ConfigurationComparator
      Parameters:
      a - the first configuration
      b - the second configuration
      Returns:
      true if keys from a are found in b and keys from b are found in a and for each key in a, the corresponding value is the sale in for the same key in b