Iteration order of the returned set has additional requirements, make
sure we document them.
Change-Id: I72ed3c8e45e7149187a4c295ab3e3d6526fbb368
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
default StatementDefinition statementDefinition() {
return YangStmtMapping.KEY;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * Iteration order of the returned set is required to match the order in which key components were declared.
+ */
+ @Override
+ Set<QName> argument();
}
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
+/**
+ * Declared representation of a {@code key} statement.
+ */
public interface KeyStatement extends DeclaredStatement<Set<QName>> {
@Override
default StatementDefinition statementDefinition() {
return YangStmtMapping.KEY;
}
+
+ /**
+ * {@inheritDoc}
+ *
+ * <p>
+ * Iteration order of the returned set is required to match the order in which key components were declared.
+ */
+ @Override
+ Set<QName> argument();
}