net.innig.collect
Interface ListMutator
- All Known Implementing Classes:
- DefaultListMutator
public interface ListMutator
Follows instructions from a ListDiff for mutating a list. You can use this
interface in combination with ListDiff.applySteps(ListMutator) to have
some structure go through a sequence of changes which keep it in step with
a changing list.
|
Maturity:
This is a mature API.
|
|
Plans:
There are no current plans to expand or revise this interface.
|
- Version:
- [Development version]
- Author:
- Paul Cantrell
- See Also:
ListDiff.applySteps(ListMutator)
|
Method Summary |
void |
insert(java.lang.Object object,
int index)
|
void |
move(java.lang.Object object,
int index,
int toIndex)
|
void |
remove(java.lang.Object object,
int index)
|
insert
void insert(java.lang.Object object,
int index)
remove
void remove(java.lang.Object object,
int index)
move
void move(java.lang.Object object,
int index,
int toIndex)