/** * Pads the given collection with <code>null</code>s until the collection has at least the given size. * * @param collection * the collection to pad * @param size * the desired minimum size */ public static void ensureSize(final Collection<?> collection, final int size) { ensureSize(collection, size, null); }