StrictConfigurationComparator (Apache Commons Configuration 2.15.1 API)
Description: declaration: package: org.apache.commons.configuration2, class: StrictConfigurationComparator

Package 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

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  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 Details

  - ### StrictConfigurationComparator

    public StrictConfigurationComparator()
    Create a new strict comparator.

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