title: Is it possible to apply a function to a collection using Java Guava?
body: <p>I want to apply a function to a collection, map, etc, using Guava.</p>
  
  <p>Basically, I need to resize the rows and columns of a <code>Table</code> separately so all rows and columns are of equal size, doing something like this:</p>
  
  <pre><code>    Table&lt;Integer, Integer, Cell&gt; table = HashBasedTable.create();
      Maps.transformValues(table.columnMap(), new ResizeFunction(BlockDimension.WIDTH));
      Maps.transformValues(table.rowMap(), new ResizeFunction(BlockDimension.HEIGHT));
  
  public interface Cell {
      int getSize(BlockDimension dimension);
      void setSize(BlockDimension dimension);
  }
  </code></pre>
  
  <p>I already have an idea of what the <code>ResizeFunction</code> should be.  However, I need to <strong>apply</strong> it, not just return a <code>Collection</code>.</p>