public static List < Integer > rowIndexStringToList ( final String row ) { if ( row == null ) { return null ; } List < Integer > rowIndex = new ArrayList <> ( ) ; try { // Convert StringId to array String [ ] rowIdString = row . split ( INDEX_DELIMITER ) ; for ( int i = 0 ; i < rowIdString . length ; i ++ ) { rowIndex . add ( Integer . parseInt ( rowIdString [ i ] ) ) ; } } catch ( NumberFormatException e ) { LOG . warn ( "Invalid row id: " + row ) ; } return rowIndex ; }
Convert the string representation of a row index to a list .