org.apache.commons.configuration2

## Class StrictConfigurationComparator

- java.lang.Object
- - org.apache.commons.configuration2.StrictConfigurationComparator

- All Implemented Interfaces:
    ConfigurationComparator

      public class StrictConfigurationComparator
      extends Object
      implements ConfigurationComparator

  Strict comparator for configurations.
  Since:
    1.0
  Version:
    $Id: StrictConfigurationComparator.java 1624601 2014-09-12 18:04:36Z oheger $
  Author:
    Herve Quiroz, Yoav Shapira

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StrictConfigurationComparator()` Create a new strict comparator.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `compare(Configuration a, Configuration b)` Compare two configuration objects.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StrictConfigurationComparator

          public StrictConfigurationComparator()

      Create a new strict comparator.

  - ### Method Detail

    - #### 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

Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.