/* * Copyright (c) 2022 PANTHEON.tech, s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * 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.yangtools.yang.binding; import com.google.common.annotations.Beta; import org.eclipse.jdt.annotation.NonNull; /** * Base interface for all interfaces generated to capture a specific contract. * * @param Type of the captured contract */ @Beta // FIXME: evaluate integrating with BindingObject public interface BindingContract> { /** * Return the interface implemented by this object. This method differs from {@link Object#getClass()} in that it * returns the interface contract, not a concrete implementation class. * * @return Implemented contract */ @NonNull Class implementedInterface(); }