Class StrictConfigurationComparator
java.lang.Object
org.apache.commons.configuration2.StrictConfigurationComparator
- All Implemented Interfaces:
ConfigurationComparator
Strict comparator for configurations.
- Since:
- 1.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare two configuration objects.
-
Constructor Details
-
StrictConfigurationComparator
public StrictConfigurationComparator()Create a new strict comparator.
-
-
Method Details
-
compare
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
-