/** * Fills a <code>List</code> with <code>null</code> * by calling {@link #fillList(List, int, Object)} * with a <code>null</code> object. * @param list the <code>List</code> that should be filled * @param size the resulting size of the <code>List</code> */ public static void fillList(List list, int size) { fillList(list, size, null); }
public void truncate(long len) throws SQLException { if(wasFreeCalled) { throw new SQLException("free() was called"); } blobData = CollectionUtil.truncateList(blobData, (int)len); }
/** * Fills a <code>List</code> with <code>null</code> * by calling {@link #fillList(List, int, Object)} * with a <code>null</code> object. * @param list the <code>List</code> that should be filled * @param size the resulting size of the <code>List</code> */ public static void fillList(List list, int size) { fillList(list, size, null); }
public void truncate(long len) throws SQLException { if(wasFreeCalled) { throw new SQLException("free() was called"); } blobData = CollectionUtil.truncateList(blobData, (int)len); }
private void adjustColumns() { int rowCount = 0; for (List<Object> nextColumn : columnMap.values()) { rowCount = Math.max(rowCount, nextColumn.size()); } for (List<Object> nextColumn : columnMap.values()) { CollectionUtil.fillList(nextColumn, rowCount); } }
public void truncate(long len) throws SQLException { if(wasFreeCalled) { throw new SQLException("free() was called"); } blobData = CollectionUtil.truncateList(blobData, (int)len); }
private void adjustColumns() { int rowCount = 0; Iterator columns = columnMap.values().iterator(); while(columns.hasNext()) { List nextColumn = (List)columns.next(); rowCount = Math.max(rowCount, nextColumn.size()); } columns = columnMap.values().iterator(); while(columns.hasNext()) { List nextColumn = (List)columns.next(); CollectionUtil.fillList(nextColumn, rowCount); } }
private void adjustColumns() { int rowCount = 0; Iterator columns = columnMap.values().iterator(); while(columns.hasNext()) { List nextColumn = (List)columns.next(); rowCount = Math.max(rowCount, nextColumn.size()); } columns = columnMap.values().iterator(); while(columns.hasNext()) { List nextColumn = (List)columns.next(); CollectionUtil.fillList(nextColumn, rowCount); } }