public void putAll(Map<? extends K, ? extends V> map) { for (Entry<? extends K, ? extends V> entry : map.entrySet()) { V value = entry.getValue(); // If the map is another DefaultCache instance than the // entry values will be CacheObject instances that need // to be converted to the normal object form. if (value instanceof CacheObject) { //noinspection unchecked value = ((CacheObject<V>) value).object; } put(entry.getKey(), value); } }
public void putAll(Map<? extends K, ? extends V> map) { for (Entry<? extends K, ? extends V> entry : map.entrySet()) { V value = entry.getValue(); // If the map is another DefaultCache instance than the // entry values will be CacheObject instances that need // to be converted to the normal object form. if (value instanceof CacheObject) { //noinspection unchecked value = ((CacheObject<V>) value).object; } put(entry.getKey(), value); } }
public void putAll(Map<? extends K, ? extends V> map) { for (Entry<? extends K, ? extends V> entry : map.entrySet()) { V value = entry.getValue(); // If the map is another DefaultCache instance than the // entry values will be CacheObject instances that need // to be converted to the normal object form. if (value instanceof CacheObject) { //noinspection unchecked value = ((CacheObject<V>) value).object; } put(entry.getKey(), value); } }
public void putAll(Map map) { for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry entry = (Map.Entry) i.next(); Object value = entry.getValue(); // If the map is another DefaultCache instance than the // entry values will be CacheObject instances that need // to be converted to the normal object form. if (value instanceof CacheObject) { value = ((CacheObject) value).object; } put(entry.getKey(), value); } }
public void incrementConnectionFailures(String address) { Integer count = addressBlacklist.get(address); if (count == null) { count = 1; } else { count += 1; } addressBlacklist.put(address, count); }
/** * Increments the connection failure counter by one for the given address. * * @param address the address the connection failure counter should be increased */ private void incrementConnectionFailures(String address) { Integer count = ADDRESS_BLACKLIST.get(address); ADDRESS_BLACKLIST.put(address, count == null ? 1 : count + 1); }
/** * Increments the connection failure counter by one for the given address. * * @param address the address the connection failure counter should be increased */ private void incrementConnectionFailures(String address) { Integer count = ADDRESS_BLACKLIST.get(address); ADDRESS_BLACKLIST.put(address, count == null ? 1 : count + 1); }
/** * Increments the connection failure counter by one for the given address. * * @param address the address the connection failure counter should be increased */ private void incrementConnectionFailures(String address) { Integer count = ADDRESS_BLACKLIST.get(address); ADDRESS_BLACKLIST.put(address, count == null ? 1 : count + 1); }
services.put(serviceName, serviceAddress == null ? "" : serviceAddress);
services.put(serviceName, serviceAddress == null ? "" : serviceAddress);
services.put(serviceName, serviceAddress == null ? "" : serviceAddress);
services.put(serviceName, serviceAddress == null ? "" : serviceAddress);