Remove "/" sign in AbstractRestconfStreamRegistry
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / server / api / PatchStatusContext.java
1 /*
2  * Copyright (c) 2016 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.server.api;
9
10 import static java.util.Objects.requireNonNull;
11
12 import java.util.List;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.eclipse.jdt.annotation.Nullable;
15 import org.opendaylight.restconf.common.errors.RestconfError;
16
17 /**
18  * Holder of patch status context.
19  */
20 public record PatchStatusContext(
21     @NonNull DatabindContext databind,
22     @NonNull String patchId,
23     @NonNull List<PatchStatusEntity> editCollection,
24     boolean ok,
25     @Nullable List<RestconfError> globalErrors) implements DatabindAware {
26
27     public PatchStatusContext {
28         requireNonNull(databind);
29         requireNonNull(patchId);
30         requireNonNull(editCollection);
31     }
32 }