* 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.model.api;
import com.google.common.annotations.Beta;
import java.util.Collection;
-import java.util.Set;
+import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.yangtools.yang.model.api.stmt.DeviateEffectiveStatement;
+import org.opendaylight.yangtools.yang.model.api.stmt.UniqueEffectiveStatement;
/**
* Interface describing YANG 'deviate' statement.
* The argument is one of the strings "not-supported", "add", "replace", or "delete".
*/
@Beta
-public interface DeviateDefinition {
+public interface DeviateDefinition extends EffectiveStatementEquivalent<DeviateEffectiveStatement> {
/**
* Return deviation kind.
*
*
* @return set of the deviated must statements
*/
- Set<MustDefinition> getDeviatedMusts();
+ Collection<? extends @NonNull MustDefinition> getDeviatedMusts();
/**
* Returns deviated type statement.
*
* @return collection of the deviated unique statements
*/
- Collection<UniqueConstraint> getDeviatedUniques();
+ Collection<? extends @NonNull UniqueEffectiveStatement> getDeviatedUniques();
/**
* Returns deviated units statement.