public class ConfigItemMapIndexed extends Object implements ConfigItemCollection<ConfigItemMapEntry>
| Constructor and Description |
|---|
ConfigItemMapIndexed(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ConfigItemMapEntry configItemMapEntry) |
void |
add(int index,
ConfigItemMapEntry element) |
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
boolean |
contains(Object o) |
ConfigItemMapEntry |
get(int index) |
String |
getName() |
boolean |
isEmpty() |
Iterator<ConfigItemMapEntry> |
iterator() |
void |
remove(int index) |
ConfigItemMapEntry |
set(int index,
ConfigItemMapEntry element) |
int |
size() |
public ConfigItemMapIndexed(String name)
name - the name of the item (= map)public int size()
size in interface ConfigItemCollection<ConfigItemMapEntry>public boolean isEmpty()
isEmpty in interface ConfigItemCollection<ConfigItemMapEntry>public boolean contains(Object o)
o - the object to findpublic Iterator<ConfigItemMapEntry> iterator()
iterator in interface ConfigItemCollection<ConfigItemMapEntry>public boolean add(ConfigItemMapEntry configItemMapEntry)
configItemMapEntry - the entry to addpublic void remove(int index)
index - the index of the element to be removedIndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public ConfigItemMapEntry get(int index)
index - the index of the entry to returnIndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public ConfigItemMapEntry set(int index, ConfigItemMapEntry element)
index - the index of the entry to setelement - the new element to setIndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public void add(int index,
ConfigItemMapEntry element)
index - the index of the entry to addelement - the new element to addIndexOutOfBoundsException - if the index is out of range (index < 0 || index ≥ size())public String getName()
getName in interface ConfigBlockpublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedCopyright © 2016–2021. All rights reserved.