/** * Returns the existing element registry for the given key, or creates it if * it does not already exist. */ private synchronized AttributeMetadataRegistryBuilder getOrCreateAttribute( AttributeKey<?> key) { RootKey rootKey = Schema.getRootKey(key); AttributeMetadataRegistryBuilder attRegistry = attributes.get(rootKey); if (attRegistry == null) { attRegistry = new AttributeMetadataRegistryBuilder(this); attributes.put(rootKey, attRegistry); } dirty(); return attRegistry; }
/** * Returns the existing element registry for the given key, or creates it if * it does not already exist. */ private synchronized AttributeMetadataRegistryBuilder getOrCreateAttribute( AttributeKey<?> key) { RootKey rootKey = Schema.getRootKey(key); AttributeMetadataRegistryBuilder attRegistry = attributes.get(rootKey); if (attRegistry == null) { attRegistry = new AttributeMetadataRegistryBuilder(this); attributes.put(rootKey, attRegistry); } dirty(); return attRegistry; }
/** * Returns the existing element registry for the given key, or creates it if * it does not already exist. */ private synchronized AttributeMetadataRegistryBuilder getOrCreateAttribute( AttributeKey<?> key) { RootKey rootKey = Schema.getRootKey(key); AttributeMetadataRegistryBuilder attRegistry = attributes.get(rootKey); if (attRegistry == null) { attRegistry = new AttributeMetadataRegistryBuilder(this); attributes.put(rootKey, attRegistry); } dirty(); return attRegistry; }
AttributeMetadataRegistryBuilder builder = attributes.get(key); if (builder == null) { builder = new AttributeMetadataRegistryBuilder(this); attributes.put(key, builder);
AttributeMetadataRegistryBuilder builder = attributes.get(key); if (builder == null) { builder = new AttributeMetadataRegistryBuilder(this); attributes.put(key, builder);
AttributeMetadataRegistryBuilder builder = attributes.get(key); if (builder == null) { builder = new AttributeMetadataRegistryBuilder(this); attributes.put(key, builder);