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()
MapMetadata
key-type
attribute of the map.getKeyType
in interface MapMetadata
null
if
none is specified.public void setKeyType(String keyTypeName)
setKeyType
in interface MutableMapMetadata
public String getValueType()
MapMetadata
value-type
attribute of the map.getValueType
in interface MapMetadata
null
if
none is specified.public void setValueType(String valueTypeName)
setValueType
in interface MutableMapMetadata
public List<MapEntry> getEntries()
MapMetadata
getEntries
in interface MapMetadata
MapEntry
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 MutableMapMetadata
public MapEntry addEntry(NonNullMetadata key, Metadata value)
addEntry
in interface MutableMapMetadata
public void removeEntry(MapEntry entry)
removeEntry
in interface MutableMapMetadata
Copyright © 2015. All rights reserved.