import com.google.common.annotations.Beta;
import java.util.Collection;
+import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
@Beta
-public interface MustStatementAwareDeclaredStatement<A> extends DeclaredStatement<A>,
- MustStatementContainer {
- @Override
- default Collection<? extends MustStatement> getMusts() {
+public interface MustStatementAwareDeclaredStatement<A> extends DeclaredStatement<A> {
+ /**
+ * Return collection of {@link MustStatement}. For RFC6020, this method returns an empty collection for statements
+ * which do not allow for must statement children.
+ *
+ * @return collection of must statements
+ */
+ default @NonNull Collection<? extends MustStatement> getMustStatements() {
return declaredSubstatements(MustStatement.class);
}
}