Package io.keikai.model.impl
Class DataValidationIndex
java.lang.Object
io.keikai.model.impl.DataValidationIndex
- All Implemented Interfaces:
Serializable
Encapsulates the R-tree index used to look up
AbstractDataValidationAdv instances by cell or region. The index
is mutable from the caller's point of view but internally swaps a new
persistent r-tree on every modification, matching the original
SheetImpl behaviour.- Since:
- 7.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(AbstractDataValidationAdv dv, CellRegion region) voidclear()firstAtPoint(int rowIdx, int colIdx) Returns the first DV whose MBR contains (rowIdx, colIdx), or null.voidforEachOverlapping(CellRegion region, Consumer<AbstractDataValidationAdv> visitor) Visits every DV whose MBR overlaps the given region.booleanisEmpty()voidremove(AbstractDataValidationAdv dv, CellRegion region)
-
Constructor Details
-
DataValidationIndex
public DataValidationIndex()
-
-
Method Details
-
add
-
remove
-
clear
public void clear() -
isEmpty
public boolean isEmpty() -
forEachOverlapping
Visits every DV whose MBR overlaps the given region. -
firstAtPoint
Returns the first DV whose MBR contains (rowIdx, colIdx), or null.
-