Class StrictConfigurationComparator
- java.lang.Object
-
- org.apache.commons.configuration2.StrictConfigurationComparator
-
- All Implemented Interfaces:
ConfigurationComparator
public class StrictConfigurationComparator extends java.lang.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 Description StrictConfigurationComparator()
Create a new strict comparator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
compare(Configuration a, Configuration b)
Compare two configuration objects.
-
-
-
Method Detail
-
compare
public boolean compare(Configuration a, Configuration b)
Compare two configuration objects.- Specified by:
compare
in interfaceConfigurationComparator
- Parameters:
a
- the first configurationb
- 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
-
-