* 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.cluster.datastore.messages;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
-
-public class UpdateSchemaContext {
- private final SchemaContext schemaContext;
+import static java.util.Objects.requireNonNull;
- public UpdateSchemaContext(SchemaContext schemaContext) {
- this.schemaContext = schemaContext;
- }
+import org.eclipse.jdt.annotation.NonNullByDefault;
+import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
- public SchemaContext getSchemaContext() {
- return schemaContext;
- }
+@NonNullByDefault
+public record UpdateSchemaContext(EffectiveModelContext modelContext) {
+ public UpdateSchemaContext {
+ requireNonNull(modelContext);
+ }
}