We have two undocumented methods, add javadocs.
Change-Id: I5aff94d5e2826bdc1718a725fec23403feab34d9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
private static final @NonNull StatementMap EMPTY = new Empty();
+ /**
+ * Return an empty map.
+ *
+ * @return An empty map.
+ */
static @NonNull StatementMap empty() {
return EMPTY;
}
*/
abstract @NonNull StatementMap put(int index, @NonNull AbstractResumedStatement<?, ?, ?> obj);
+ /**
+ * Ensure storage space for at least {@code explectedLimit} substatements.
+ *
+ * @param expectedLimit Expected number of substatements
+ * @return New statement map
+ */
abstract @NonNull StatementMap ensureCapacity(int expectedLimit);
}