Filter Compare.Equal for two strings

Hi,

I have a scenario where i need to filter the container source to check an object ‘currentState’ equals to either single or married.
Pls provide a suggestion.

Thank You

On the container you can use the method “addContainerFilter”. I think there are some implementations of filters available (–> apidoc).
For your own Filter implementation you just have to implement the interface com.vaadin.data.Container.Filter.

Can try Or(new Compare.Equal(…,…), new Compare.Equal(…,…))

I know that works for SQLContainer

Dana

Thank you Dana,