2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. 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.mdsal.binding.api;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.Nullable;
12 import org.opendaylight.yangtools.yang.binding.DataObject;
15 * Interface implemented by classes interested in receiving the last data change.
19 public interface DataListener<T extends DataObject> {
22 * Invoked when there was data change for the supplied path, which was used to register listener.
23 * @param data last state.
25 void dataChangedTo(@Nullable T data);