DataForm (NodeConfiguration, etc) toBuilder or something similiar

Issue #162 new
Daniel Gultsch created an issue

When working with configurations of server side things. The process is usually retrieve the current configuration; make the change; submit the change. For example if I want to change the access model of a PubSub node (and not change the rest) I retrieve a NodeConfiguration and then due to immutability create a new NodeConfiguration that is exactly the same as the old one but with a the access model changed. However I noticed there is a lack of a NodeConfiguration.toBuilder() or something similar that essentially lets me modify the original one.

The same use case probably exists for other configurations based on DataForms (MUC rooms, etc)

Comments (0)

  1. Log in to comment