/** * Create a new array with a copy of all the values. * * @return an array sized by the length of the list with each of the values. * @webref stringlist:method * @brief Create a new array with a copy of all the values */ public String[] array() { return array(null); }
/** * Create a new array with a copy of all the values. * * @return an array sized by the length of the list with each of the values. * @webref stringlist:method * @brief Create a new array with a copy of all the values */ public String[] array() { return array(null); }
/** * Create a dictionary that maps between column titles and cell entries * in a TableRow. If two columns have the same name, the later column's * values will override the earlier values. */ public StringDict(TableRow row) { this(row.getColumnCount()); String[] titles = row.getColumnTitles(); if (titles == null) { titles = new StringList(IntList.fromRange(row.getColumnCount())).array(); } for (int col = 0; col < row.getColumnCount(); col++) { set(titles[col], row.getString(col)); } // remove unused and overwritten entries crop(); }