- DataContainerCodecContext(final T type) {
- childAddressabilitySummary = computeChildAddressabilitySummary(type.statement());
+ DataContainerCodecContext(final P prototype) {
+ this.prototype = requireNonNull(prototype);
+ childAddressabilitySummary = computeChildAddressabilitySummary(prototype.runtimeType().statement());
+ }
+
+ final @NonNull P prototype() {
+ return prototype;