All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swiftboot.sheet.util.IndexUtils Maven / Gradle / Ivy

There is a newer version: 2.4.7
Show newest version
package org.swiftboot.sheet.util;

/**
 * @author swiftech
 */
public class IndexUtils {

    /**
     * Null or 0~65535 is legal index of row.
     *
     * @param rowIdx
     * @return
     */
    public static boolean isLegalRow(Integer rowIdx) {
        return rowIdx == null || (rowIdx >= 0 && rowIdx < 65536);
    }

    /**
     * Null or 0~255 is legal index of column
     * @param colIdx
     * @return
     */
    public static boolean isLegalColumn(Integer colIdx){
        return colIdx == null || (colIdx >= 0 && colIdx < 256);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy