@Override protected void label(URLComposer uc) { for (Map.Entry<String, BitrateInfo> entry : bitrates.entrySet()) { int bitrate = uc.getSource().getIntValue("bitrate"); if (entry.getValue().matches(bitrate)) { log.debug("" + bitrate + " matched " + entry); if (overwrite || !uc.getInfo().containsKey(key)) { uc.getInfo().put(key, entry.getKey()); } } } }
@Override public Set<Map.Entry<K, V>> entrySet() { return backing.entrySet(); }
@Override public Set<Map.Entry<String, String>> entrySet() { check(); return map.entrySet(); }