/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }
private void myPutAll(Map<?,?> t) { if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } Iterator<? extends Map.Entry<?, ?>> it = t.entrySet().iterator(); Object key; Object value; while (it.hasNext()) { Map.Entry<?, ?> entry = it.next(); key = entry.getKey(); if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved continue; } value = entry.getValue(); super.put(key, value); if (changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } changedProperties.put(key, value); } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
/** * Removes the specified {@code key} and its associated value from this * {@code Provider}. * * @param key * the name of the property * @return the value that was mapped to the specified {@code key} ,or * {@code null} if no mapping was present */ @Override public synchronized Object remove(Object key) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); if (changedProperties.size() == 0) { changedProperties = null; } } return super.remove(key); }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }
/** * Maps the specified {@code key} property name to the specified {@code * value}. * * @param key * the name of the property. * @param value * the value of the property. * @return the value that was previously mapped to the specified {@code key} * ,or {@code null} if it did not have one. */ @Override public synchronized Object put(Object key, Object value) { if (key instanceof String && ((String) key).startsWith("Provider.")) { // Provider service type is reserved return null; } if (providerNumber != -1) { // if registered then refresh Services Services.setNeedRefresh(); } if (changedProperties != null && changedProperties.remove(key) == null) { removeFromPropertyServiceTable(key); } if (changedProperties == null) { changedProperties = new LinkedHashMap<Object, Object>(); } changedProperties.put(key, value); return super.put(key, value); }