@Override public void writeTo(OutputStream dest) { writeObject(dest, Types.serializableSize(this)); for (int i = 0; i < size(); ++i) { if (Types.isSerializable(item(i))) { writeField(dest, nameOf(i)); item(i).writeTo(dest); } } }
@Override public <T> Any<T> remove(Named<T> name) { return Types.castAnyTo(remove(name.id()), name); };
@Override public <T> Any<T> item(Named<T> name) { return Types.castAnyTo(item(name.id()), name); };
@Override public <T> Any<T> update(Named<T> name, Any<T> value) { return Types.castAnyTo(update(name.id(), value), name); };