public void setProperty(String name, Object v) { if (delegate != null && delegateProperties) { delegate.setProperty(name, v); return; } if (null == propertyMap.get()) { propertyMap.compareAndSet(null, new ConcurrentHashMap<String, Object>(4, 0.75f, 2)); } if (v == null) { propertyMap.get().remove(name); } else { propertyMap.get().put(name, v); } }
public void setProperty(String name, Object v) { if (delegate != null && delegateProperties) { delegate.setProperty(name, v); return; } if (null == propertyMap.get()) { propertyMap.compareAndSet(null, new ConcurrentHashMap<String, Object>(4, 0.75f, 2)); } if (v == null) { propertyMap.get().remove(name); } else { propertyMap.get().put(name, v); } }
public void setProperty(String name, Object v) { if (delegate != null && delegateProperties) { delegate.setProperty(name, v); return; } if (null == propertyMap.get()) { propertyMap.compareAndSet(null, new ConcurrentHashMap<String, Object>(4, 0.75f, 2)); } if (v == null) { propertyMap.get().remove(name); } else { propertyMap.get().put(name, v); } }
public void setProperty(String name, Object v) { if (delegate != null && delegateProperties) { delegate.setProperty(name, v); return; } if (null == propertyMap.get()) { propertyMap.compareAndSet(null, new ConcurrentHashMap<String, Object>(4, 0.75f, 2)); } if (v == null) { propertyMap.get().remove(name); } else { propertyMap.get().put(name, v); } }
public final void setDelegate(AbstractPropertiesHolder p, boolean props) { delegate = p; delegateProperties = props; if (delegate == null) { return; } if (documentation != null) { delegate.setDocumentation(documentation); documentation = null; } if (extensionAttributes != null) { delegate.setExtensionAttributes(extensionAttributes); extensionAttributes = null; } if (extensors.get() != null) { for (Object el : extensors.get()) { delegate.addExtensor(el); } extensors.set(null); } if (delegateProperties && propertyMap.get() != null) { for (Map.Entry<String, Object> p2 : propertyMap.get().entrySet()) { delegate.setProperty(p2.getKey(), p2.getValue()); } propertyMap.set(null); } }
public final void setDelegate(AbstractPropertiesHolder p, boolean props) { delegate = p; delegateProperties = props; if (delegate == null) { return; } if (documentation != null) { delegate.setDocumentation(documentation); documentation = null; } if (extensionAttributes != null) { delegate.setExtensionAttributes(extensionAttributes); extensionAttributes = null; } if (extensors.get() != null) { for (Object el : extensors.get()) { delegate.addExtensor(el); } extensors.set(null); } if (delegateProperties && propertyMap.get() != null) { for (Map.Entry<String, Object> p2 : propertyMap.get().entrySet()) { delegate.setProperty(p2.getKey(), p2.getValue()); } propertyMap.set(null); } }
public final void setDelegate(AbstractPropertiesHolder p, boolean props) { delegate = p; delegateProperties = props; if (delegate == null) { return; } if (documentation != null) { delegate.setDocumentation(documentation); documentation = null; } if (extensionAttributes != null) { delegate.setExtensionAttributes(extensionAttributes); extensionAttributes = null; } if (extensors.get() != null) { for (Object el : extensors.get()) { delegate.addExtensor(el); } extensors.set(null); } if (delegateProperties && propertyMap.get() != null) { for (Map.Entry<String, Object> p2 : propertyMap.get().entrySet()) { delegate.setProperty(p2.getKey(), p2.getValue()); } propertyMap.set(null); } }
public final void setDelegate(AbstractPropertiesHolder p, boolean props) { delegate = p; delegateProperties = props; if (delegate == null) { return; } if (documentation != null) { delegate.setDocumentation(documentation); documentation = null; } if (extensionAttributes != null) { delegate.setExtensionAttributes(extensionAttributes); extensionAttributes = null; } if (extensors.get() != null) { for (Object el : extensors.get()) { delegate.addExtensor(el); } extensors.set(null); } if (delegateProperties && propertyMap.get() != null) { for (Map.Entry<String, Object> p2 : propertyMap.get().entrySet()) { delegate.setProperty(p2.getKey(), p2.getValue()); } propertyMap.set(null); } }