Package com.vaadin.flow.dom.impl
Class ImmutableClassList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<String>
-
- com.vaadin.flow.dom.impl.ImmutableClassList
-
- All Implemented Interfaces:
ClassList,Serializable,Iterable<String>,Collection<String>,Set<String>
public class ImmutableClassList extends AbstractSet<String> implements ClassList, Serializable
Immutable class list implementation.For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImmutableClassList(Collection<String> values)Creates a new immutable class list with the given values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(String e)Iterator<String>iterator()intsize()-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
ImmutableClassList
public ImmutableClassList(Collection<String> values)
Creates a new immutable class list with the given values.- Parameters:
values- the values of the class list
-
-
Method Detail
-
add
public boolean add(String e)
- Specified by:
addin interfaceCollection<String>- Specified by:
addin interfaceSet<String>- Overrides:
addin classAbstractCollection<String>
-
size
public int size()
- Specified by:
sizein interfaceCollection<String>- Specified by:
sizein interfaceSet<String>- Specified by:
sizein classAbstractCollection<String>
-
-