|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.structural.ChildMatch<T>
T
- The type of the children.public abstract class ChildMatch<T>
Compares an incoming list of children with a base list and performs insert and remove operations that make the lists match.
This is an abstract class. Sub classes provide the insert and remove operations.
Constructor Summary | |
---|---|
ChildMatch(List<T> children)
Create an instance with a list of children. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildMatch(List<T> children)
children
- Method Detail |
---|
public void match(T[] match)
match
- protected abstract void insertChild(int index, T child)
index
- child
- protected abstract void removeChildAt(int index)
index
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |