Merge "Fixes bug 2114"
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / modification / AbstractModification.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.controller.cluster.datastore.modification;
10
11
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13
14 import java.io.Serializable;
15
16 /**
17  * Base class to be used for all simple modifications that can be applied to a DOMStoreTransaction
18  */
19 public abstract class AbstractModification implements Modification,
20     Serializable {
21
22     private static final long serialVersionUID = 1638042650152084457L;
23
24     protected final YangInstanceIdentifier path;
25
26     protected AbstractModification(YangInstanceIdentifier path) {
27         this.path = path;
28     }
29
30     public YangInstanceIdentifier getPath() {
31         return path;
32     }
33 }