class ImmutableTableFactory {

    public static <R, C, V> ImmutableTable<R, C, V> createWithRows(
            Map<? extends C, ? extends V> baseMap,
            Collection<? extends R> rows) {
        ImmutableTable.Builder<R, C, V> tableBuilder = ImmutableTable.builder();

        rows.forEach(row ->
                baseMap.forEach((c, v) -> tableBuilder.put(row, c, v)));

        return tableBuilder.build();
    }

}