23 |
* <code>null</code>, but rather create a default {@link AMD_IMPL} on-the-fly. |
* <code>null</code>, but rather create a default {@link AMD_IMPL} on-the-fly. |
24 |
*/ |
*/ |
25 |
public abstract class AttributeMetadataMap<AMD_IMPL extends AttributeMetadata> |
public abstract class AttributeMetadataMap<AMD_IMPL extends AttributeMetadata> |
26 |
extends TreeMap<Name, AMD_IMPL> implements |
extends TreeMap<NameImpl, AMD_IMPL> implements |
27 |
Copyable<AttributeMetadataMap>, QualityQuantizable { |
Copyable<AttributeMetadataMap>, QualityQuantizable { |
28 |
|
|
29 |
private static final long serialVersionUID = 4936966916517396063L; |
private static final long serialVersionUID = 4936966916517396063L; |
75 |
|
|
76 |
amdMap.clear(); |
amdMap.clear(); |
77 |
|
|
78 |
for (final Name key : keySet()) { |
for (final NameImpl key : keySet()) { |
79 |
final AMD_IMPL AMD_IMPL = get(key); |
final AMD_IMPL AMD_IMPL = get(key); |
80 |
amdMap.put(key, AMD_IMPL.copy()); |
amdMap.put(key, AMD_IMPL.copy()); |
81 |
} |
} |
83 |
} |
} |
84 |
|
|
85 |
/** |
/** |
86 |
* Returns the {@link AMD_IMPL} for a given {@link Name}. May return |
* Returns the {@link AMD_IMPL} for a given {@link NameImpl}. May return |
87 |
* <code>null</code> or create a default {@link AttributeMetadata} depending |
* <code>null</code> or create a default {@link AttributeMetadata} depending |
88 |
* on whether this method is overwritten. fly. |
* on whether this method is overwritten. fly. |
89 |
*/ |
*/ |
90 |
public AMD_IMPL get(final Name name) { |
public AMD_IMPL get(final NameImpl name) { |
91 |
return super.get(name); |
return super.get(name); |
92 |
} |
} |
93 |
|
|