Package com.vaadin.flow.dom
Interface ClassList
-
- All Superinterfaces:
Collection<String>,Iterable<String>,Serializable,Set<String>
- All Known Implementing Classes:
ImmutableClassList
public interface ClassList extends Set<String>, Serializable
Representation of the class names for anElement.- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleanset(String className, boolean set)Sets or removes the given class name, based on thesetparameter.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Method Detail
-
set
default boolean set(String className, boolean set)
Sets or removes the given class name, based on thesetparameter.- Parameters:
className- the class name to set or removeset- true to set the class name, false to remove it- Returns:
- true if the class list was modified (class name added or removed), false otherwise
-
-