public static < R , C , V , C2 > ImmutableTable < R , C2 , V > columnTransformerByCell ( final Table < R , C , V > table , final Function < Table . Cell < R , C , V > , C2 > columnTransformer ) { final ImmutableTable . Builder < R , C2 , V > newTable = ImmutableTable . builder ( ) ; for ( Table . Cell < R , C , V > cell : table . cellSet ( ) ) { C2 col = columnTransformer . apply ( cell ) ; newTable . put ( cell . getRowKey ( ) , col , cell . getValue ( ) ) ; } return newTable . build ( ) ; }
columnTransformer has access to Key Value information in each Table . Cell