2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.restconf.common.patch;
10 import static java.util.Objects.requireNonNull;
12 import java.util.List;
13 import org.opendaylight.restconf.common.context.InstanceIdentifierContext;
15 public class PatchContext {
16 private final InstanceIdentifierContext context;
17 private final List<PatchEntity> data;
18 private final String patchId;
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);
26 public InstanceIdentifierContext getInstanceIdentifierContext() {
30 public List<PatchEntity> getData() {
34 public String getPatchId() {