Class CellSet
java.lang.Object
java.util.AbstractCollection<org.apache.poi.ss.util.CellReference>
java.util.AbstractSet<org.apache.poi.ss.util.CellReference>
java.util.HashSet<org.apache.poi.ss.util.CellReference>
com.vaadin.flow.component.spreadsheet.CellSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<org.apache.poi.ss.util.CellReference>,Collection<org.apache.poi.ss.util.CellReference>,Set<org.apache.poi.ss.util.CellReference>
CellSet is a set of cells that also provides utilities regarding the contents
of the set.
Internal use only. May be renamed or removed in a future release.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.HashSet
add, clear, clone, isEmpty, iterator, newHashSet, remove, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
CellSet
Creates a set with the specified cells- Parameters:
cells- cells to construct the set with, notnull
-
-
Method Details
-
contains
Whether the set contains the specified cell.- Specified by:
containsin interfaceCollection<org.apache.poi.ss.util.CellReference>- Specified by:
containsin interfaceSet<org.apache.poi.ss.util.CellReference>- Overrides:
containsin classHashSet<org.apache.poi.ss.util.CellReference>- Parameters:
object- cell to be checked whether it exists in the set- Returns:
trueif set contains the specified cell,falseotherwise- Throws:
IllegalArgumentException- the sheet name for theCellReferenceisnull
-