T
- The type of the children.public abstract class ChildMatch<T>
extends java.lang.Object
This is an abstract class. Sub classes provide the insert and remove operations.
Constructor and Description |
---|
ChildMatch(java.util.List<T> children)
Create an instance with a list of children.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
insertChild(int index,
T child)
Sub classes provide implementation.
|
void |
match(T[] match)
Match the array to our list.
|
protected abstract void |
removeChildAt(int index)
Sub classes provide implementation.
|
public ChildMatch(java.util.List<T> children)
children
- public void match(T[] match)
match
- protected abstract void insertChild(int index, T child)
index
- child
- protected abstract void removeChildAt(int index)
index
-