Immutable bean with Binder<>

Hello,

Is there a possibility to use an immutable bean with a Binder<> ? that is, without setters for example, the problem lies when using the .bind() method, what setters need.

Binding<BEAN, TARGET> bind(ValueProvider<BEAN, TARGET> getter, Setter<BEAN, TARGET> setter);

You can use a Lambda expression for both the ValueProvider and Setter implementations. So you can have something like

.bind(bean -> bean.getValue(), (bean, value) -> { /* do nothing */ });

to not write anything when the setter is called.

Olli Tietäväinen:
You can use a Lambda expression for both the ValueProvider and Setter implementations. So you can have something like

.bind(bean -> bean.getValue(), (bean, value) -> { /* do nothing */ });

to not write anything when the setter is called.

Works perfectly, thanks a lot Olli.