Example usage for org.apache.commons.configuration Configuration equals

List of usage examples for org.apache.commons.configuration Configuration equals

Introduction

In this page you can find the example usage for org.apache.commons.configuration Configuration equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:com.netflix.config.ConcurrentCompositeConfiguration.java

/**
 * Remove a configuration. The container configuration cannot be removed.
 *
 * @param config The configuration to remove
 *//* w w  w. j a v a 2s. c o m*/
public boolean removeConfiguration(Configuration config) {
    // Make sure that you can't remove the inMemoryConfiguration from
    // the CompositeConfiguration object       
    if (!config.equals(containerConfiguration)) {
        return configList.remove((AbstractConfiguration) config);
    }
    return false;
}