List of usage examples for org.apache.commons.collections4 Trie put
V put(K key, V value);
From source file:cherry.foundation.telno.AreaCodeTableFactory.java
/** * ( (6?)??????) ??//from w w w . ja v a 2 s. co m * * @return ( (6?)??????) * @throws InvalidFormatException ???? * @throws IOException ?? */ @Override public Trie<String, Integer> getObject() throws InvalidFormatException, IOException { Trie<String, Integer> trie = new PatriciaTrie<>(); for (Resource r : resources) { try (InputStream in = r.getInputStream()) { Map<String, Pair<String, String>> map = soumuExcelParser.parse(in); for (Map.Entry<String, Pair<String, String>> entry : map.entrySet()) { trie.put(entry.getKey(), entry.getValue().getLeft().length()); } } } return trie; }