diff options
Diffstat (limited to 'server/src/main/java/com/vaadin/ui/MultiSelect.java')
-rw-r--r-- | server/src/main/java/com/vaadin/ui/MultiSelect.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/main/java/com/vaadin/ui/MultiSelect.java b/server/src/main/java/com/vaadin/ui/MultiSelect.java index 6519921c88..3c56a22da1 100644 --- a/server/src/main/java/com/vaadin/ui/MultiSelect.java +++ b/server/src/main/java/com/vaadin/ui/MultiSelect.java @@ -136,4 +136,15 @@ public interface MultiSelect<T> extends HasValue<Set<T>>, Serializable { */ public Registration addSelectionListener( MultiSelectionListener<T> listener); + + /** + * MultiSelect empty value should always be an empty set by default and not + * {@code null}. + * + * @return An empty set, not {@code null} + */ + public default Set<T> getEmptyValue() { + return Collections.emptySet(); + } + } |