public class MapMetadataImpl extends Object implements MutableMapMetadata
| Constructor and Description |
|---|
MapMetadataImpl() |
MapMetadataImpl(MapMetadata source) |
MapMetadataImpl(String keyType,
String valueType,
List<MapEntry> entries) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntry(MapEntry entry) |
MapEntry |
addEntry(NonNullMetadata key,
Metadata value) |
List<MapEntry> |
getEntries()
Return the entries for the map.
|
String |
getKeyType()
Return the name of the type of the map keys.
|
String |
getValueType()
Return the name of the type of the map values.
|
void |
removeEntry(MapEntry entry) |
void |
setEntries(List<MapEntry> entries) |
void |
setKeyType(String keyTypeName) |
void |
setValueType(String valueTypeName) |
String |
toString() |
public MapMetadataImpl()
public MapMetadataImpl(MapMetadata source)
public String getKeyType()
MapMetadatakey-type attribute of the map.getKeyType in interface MapMetadatanull if
none is specified.public void setKeyType(String keyTypeName)
setKeyType in interface MutableMapMetadatapublic String getValueType()
MapMetadatavalue-type attribute of the map.getValueType in interface MapMetadatanull if
none is specified.public void setValueType(String valueTypeName)
setValueType in interface MutableMapMetadatapublic List<MapEntry> getEntries()
MapMetadatagetEntries in interface MapMetadataMapEntry objects for each entry in
the map. The List is empty if no entries are specified for the
map.public void addEntry(MapEntry entry)
addEntry in interface MutableMapMetadatapublic MapEntry addEntry(NonNullMetadata key, Metadata value)
addEntry in interface MutableMapMetadatapublic void removeEntry(MapEntry entry)
removeEntry in interface MutableMapMetadataCopyright © 2012. All Rights Reserved.