|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.composite.core.CompositeImpl<P,T>
P - The parent type.T - The children type.public class CompositeImpl<P extends IComposite<P,T>,T>
Default composite implementation.
| Constructor Summary | |
|---|---|
CompositeImpl()
|
|
| Method Summary | |
|---|---|
P |
add(T child)
Add a child and return the object itself. |
List<T> |
getChildren()
Get the children list. |
boolean |
isEmpty()
Check if object has children. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeImpl()
| Method Detail |
|---|
public boolean isEmpty()
IComposite
isEmpty in interface IComposite<P extends IComposite<P,T>,T>public List<T> getChildren()
IComposite
getChildren in interface IComposite<P extends IComposite<P,T>,T>public P add(T child)
IComposite
add in interface IComposite<P extends IComposite<P,T>,T>child - The child.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||