/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final NullaryFunction<T> initializer) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), initializer); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }
/** * {@inheritDoc} */ @Override @SuppressWarnings("unchecked") public synchronized <T> Attribute<T> createAttribute(final String name, final T defaultValue) { Attribute<T> attribute = name2Attribute.get(name); if (attribute == null) { attribute = new Attribute<T>(this, name, attributes.size(), defaultValue); attributes.add(attribute); name2Attribute.put(name, attribute); } return attribute; }