Class ArrayHelper


  • public class ArrayHelper
    extends Object
    • Constructor Detail

      • ArrayHelper

        public ArrayHelper()
    • Method Detail

      • addFirstElem

        public static final String[] addFirstElem​(String[] inArray,
                                                  String firstValue)
        insert a value at the fist position in a array of String
        Parameters:
        inArray - a Array of String
        firstValue - the value of the first element
        Returns:
        a Array with a new first element (size+1)
      • addCol

        public static void addCol​(String[][] array,
                                  String colName)
      • readExcelCell

        public static String readExcelCell​(ContentContext ctx,
                                           org.apache.poi.xssf.usermodel.XSSFCell cell)
      • calcMax

        protected static void calcMax​(Cell[][] array)
      • getTitles

        public static List<String> getTitles​(Cell[][] cells)
      • getTitles

        public static List<String> getTitles​(Cell[][] cells)
      • getXLSXArray

        public static Cell[][] getXLSXArray​(ContentContext ctx,
                                            org.apache.poi.xssf.usermodel.XSSFWorkbook workbook,
                                            int sheetNumber)
                                     throws Exception
        Throws:
        Exception