Code example for ImmutableMap.Builder

Methods: build, put

0
                ImmutableList.copyOf(map.keySet()));
    } 
     
    private BtVodDataRow brandRow() { 
        Builder<String, String> rows = ImmutableMap.builder();
        rows.put(BtVodFileColumn.PRODUCT_TITLE.key(), "");
        rows.put(BtVodFileColumn.BRANDIA_ID.key(), BRAND_ID);
        rows.put(BtVodFileColumn.BRAND_TITLE.key(), BRAND_TITLE);
        rows.put(BtVodFileColumn.PRODUCT_ID.key(), BRAND_ID);
        rows.put(BtVodFileColumn.SYNOPSIS.key(), "A synopsis");
        rows.put(BtVodFileColumn.PACKSHOT.key(), "");
        rows.put(BtVodFileColumn.SERIES_NUMBER.key(), "");
        rows.put(BtVodFileColumn.IS_SERIES.key(), "");
        rows.put(BtVodFileColumn.CATEGORY.key(), "");
        Map<String, String> map = rows.build();
        return new BtVodDataRow(ImmutableList.copyOf(map.values()), 
                ImmutableList.copyOf(map.keySet()));
    } 
     
    private Brand expectedBrand() { 
        Brand brand = new Brand(brandUri(), null, 
                PUBLISHER);
        brand.setTitle(BRAND_TITLE);
        return brand;
    } 
 
    private String brandUri() {