@Override public void write(AddValueUpdate update, DataType superType) { writeValue(this, ((CollectionDataType)superType).getNestedType(), update.getValue()); putInt(null, update.getWeight()); }
@Override public void write(AddValueUpdate update, DataType superType) { writeValue(this, ((CollectionDataType)superType).getNestedType(), update.getValue()); putInt(null, update.getWeight()); }
} else if (upd instanceof AddValueUpdate) { if (val instanceof Array) { lst.addAll(createAddValueUpdateForArray((Array)val, ((AddValueUpdate)upd).getWeight())); } else if (val instanceof WeightedSet) { lst.addAll(createAddValueUpdateForWset((WeightedSet)val));
((Array)val).add(upd.getValue()); } else if (val instanceof WeightedSet) { ((WeightedSet)val).put(upd.getValue(), ((AddValueUpdate)upd).getWeight());