@Test public void testSetColumns() { assertThat(testSetColumns.codeListTable.size(), is(14)); }
public void setColumns(Map<String, Map<Locale, String>> cols) { checkTable(); Table<Locale, String, String> table = createTable(); for (Map.Entry<String, Map<Locale, String>> e : cols.entrySet()) { String value = e.getKey(); Map<Locale, String> col = e.getValue(); for (Map.Entry<Locale, String> ce : col.entrySet()) { Locale locale = ce.getKey(); String label = ce.getValue(); table.put(locale, value, label); } } this.codeListTable = Tables.unmodifiableTable(table); }
SimpleI18nCodeList extends AbstractI18nCodeList implements
                                InitializingBean { public void setColumns(Map<String, Map<Locale, String>> cols) { checkTable(); Table<Locale, String, String> table = createTable(); for (Map.Entry<String, Map<Locale, String>> e : cols.entrySet()) { String value = e.getKey(); Map<Locale, String> col = e.getValue(); for (Map.Entry<Locale, String> ce : col.entrySet()) { Locale locale = ce.getKey(); String label = ce.getValue(); table.put(locale, value, label); } } this.codeListTable = Tables.unmodifiableTable(table); } }
SimpleI18nCodeList extends AbstractI18nCodeList implements
                                InitializingBean { public void setColumns(Map<String, Map<Locale, String>> cols) { checkTable(); Table<Locale, String, String> table = createTable(); for (Map.Entry<String, Map<Locale, String>> e : cols.entrySet()) { String value = e.getKey(); Map<Locale, String> col = e.getValue(); for (Map.Entry<Locale, String> ce : col.entrySet()) { Locale locale = ce.getKey(); String label = ce.getValue(); table.put(locale, value, label); } } this.codeListTable = Tables.unmodifiableTable(table); }  }
SimpleI18nCodeList extends AbstractI18nCodeList implements
                                InitializingBean { public void setColumns(Map<String, Map<Locale, String>> cols) { checkTable(); Table<Locale, String, String> table = createTable(); for (Map.Entry<String, Map<Locale, String>> e : cols.entrySet()) { String value = e.getKey(); Map<Locale, String> col = e.getValue(); for (Map.Entry<Locale, String> ce : col.entrySet()) { Locale locale = ce.getKey(); String label = ce.getValue(); table.put(locale, value, label); } } this.codeListTable = Tables.unmodifiableTable(table); }  void setRows(Map<Locale, Map<String, String>> rows); void setRowsByCodeList(Map<Locale, CodeList> rows); void setColumns(Map<String, Map<Locale, String>> cols); @Override void afterPropertiesSet(); }
SimpleI18nCodeList extends AbstractI18nCodeList implements
                                InitializingBean { public void setColumns(Map<String, Map<Locale, String>> cols) { checkTable(); Table<Locale, String, String> table = createTable(); for (Map.Entry<String, Map<Locale, String>> e : cols.entrySet()) { String value = e.getKey(); Map<Locale, String> col = e.getValue(); for (Map.Entry<Locale, String> ce : col.entrySet()) { Locale locale = ce.getKey(); String label = ce.getValue(); table.put(locale, value, label); } } this.codeListTable = Tables.unmodifiableTable(table); }  void setRows(Map<Locale, Map<String, String>> rows); void setRowsByCodeList(Map<Locale, CodeList> rows); void setColumns(Map<String, Map<Locale, String>> cols); @Override void afterPropertiesSet();  }