InstanceIdentifierContext does not take generics
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / patch / PatchContext.java
1 /*
2  * Copyright (c) 2015 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 package org.opendaylight.restconf.common.patch;
9
10 import static java.util.Objects.requireNonNull;
11
12 import java.util.List;
13 import org.opendaylight.restconf.common.context.InstanceIdentifierContext;
14
15 public class PatchContext {
16     private final InstanceIdentifierContext context;
17     private final List<PatchEntity> data;
18     private final String patchId;
19
20     public PatchContext(final InstanceIdentifierContext context, final List<PatchEntity> data, final String patchId) {
21         this.context = requireNonNull(context);
22         this.data = requireNonNull(data);
23         this.patchId = requireNonNull(patchId);
24     }
25
26     public InstanceIdentifierContext getInstanceIdentifierContext() {
27         return context;
28     }
29
30     public List<PatchEntity> getData() {
31         return data;
32     }
33
34     public String getPatchId() {
35         return patchId;
36     }
37 }