Documentation of 'org.apache.poi.hssf.record.cf.CellRangeUtil' Java class
CellRangeUtil
org.apache.poi.hssf.record.cf

Class CellRangeUtil



  • public final class CellRangeUtil
    extends java.lang.Object
    • Method Detail

      • intersect

        public static int intersect(CellRangeAddress crA,
                                    CellRangeAddress crB)
        Intersect this range with the specified range.
        Parameters:
        crB - - the specified range
        Returns:
        code which reflects how the specified range is related to this range.
        Possible return codes are: NO_INTERSECTION - the specified range is outside of this range;
        OVERLAP - both ranges partially overlap;
        INSIDE - the specified range is inside of this one
        ENCLOSES - the specified range encloses (possibly exactly the same as) this range
      • mergeCellRanges

        public static CellRangeAddress[] mergeCellRanges(CellRangeAddress[] cellRanges)
        Do all possible cell merges between cells of the list so that:
      • if a cell range is completely inside of another cell range, it gets removed from the list
      • if two cells have a shared border, merge them into one bigger cell range
Parameters:
cellRanges -
Returns:
updated List of cell ranges
Skip navigation links

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.