/* * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.controller.md.sal.common.impl; import java.util.Map; import java.util.Set; import org.opendaylight.controller.md.sal.common.api.data.DataChange; import org.opendaylight.yangtools.concepts.Path; public abstract class AbstractDataChange

, D> implements DataChange { private final Map createdCfg; private final Map createdOperational; private final Set

removedCfg; private final Set

removedOperational; private final Map updatedCfg; private final Map updatedOperational; public AbstractDataChange(Map createdCfg, Map createdOperational, Set

removedCfg, Set

removedOperational, Map updatedCfg, Map updatedOperational) { this.createdCfg = createdCfg; this.createdOperational = createdOperational; this.removedCfg = (removedCfg); this.removedOperational = (removedOperational); this.updatedCfg = (updatedCfg); this.updatedOperational = (updatedOperational); } @Override public final Map getCreatedConfigurationData() { return this.createdCfg; } @Override public final Map getCreatedOperationalData() { return this.createdOperational; } @Override public final Set

getRemovedConfigurationData() { return this.removedCfg; } @Override public final Set

getRemovedOperationalData() { return this.removedOperational; } @Override public final Map getUpdatedConfigurationData() { return this.updatedCfg; } @Override public final Map getUpdatedOperationalData() { return this.updatedOperational; } }