P - the type of parent for this childpublic interface Child<P>
Child interface defines the contract for an object which
maintains a reference to a "parent" object.| Modifier and Type | Method and Description |
|---|---|
P |
getParent()
Get the parent object for this child, or
null if there is none. |
void |
setParent(P parent)
Set the parent object for this child.
|