2 * Copyright (c) 2022 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.yangtools.yang.binding;
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
14 * Base interface for all interfaces generated to capture a specific contract.
16 * @param <T> Type of the captured contract
19 // FIXME: evaluate integrating with BindingObject
20 public interface BindingContract<T extends BindingContract<T>> {
22 * Return the interface implemented by this object. This method differs from {@link Object#getClass()} in that it
23 * returns the interface contract, not a concrete implementation class.
25 * @return Implemented contract
27 @NonNull Class<? extends T> implementedInterface();