public interface ModifiableRepeater extends Repeater
Modifier and Type | Method and Description |
---|---|
ModifiableRepeaterEntry |
addEntry()
Creates a Repeater entry at the last position.
|
ModifiableRepeaterEntry |
addEntry(int position)
Creates a Repeater entry at the given position.
|
ModifiableRepeaterEntry |
getEntry(int position)
Retrieves the repeater entry at the given position.
|
void |
moveEntries(Map<Integer,Integer> positionsMapping)
Moves the entries according to the given position mapping.
|
void |
removeEntry(int position)
Removes the repeater entry at the given position.
|
copyTo, getEntries, getSize, hasEntry
ModifiableRepeaterEntry getEntry(int position)
Repeater
ModifiableRepeaterEntry addEntry()
ModifiableRepeaterEntry addEntry(int position) throws IllegalArgumentException
position
- The position of the new entryIllegalArgumentException
- if the position is not between the negative and positive repeater sizevoid moveEntries(Map<Integer,Integer> positionsMapping)
positionsMapping
- the position mappingvoid removeEntry(int position) throws UnknownDataException
position
- The position of the entry to removeUnknownDataException
- if there is no entry at the given position