diff options
Diffstat (limited to 'docs/adk15ProgGuideDB/generics.xml')
-rw-r--r-- | docs/adk15ProgGuideDB/generics.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/adk15ProgGuideDB/generics.xml b/docs/adk15ProgGuideDB/generics.xml index 1514d7ded..089e07cab 100644 --- a/docs/adk15ProgGuideDB/generics.xml +++ b/docs/adk15ProgGuideDB/generics.xml @@ -1100,14 +1100,14 @@ public abstract aspect ParentChildRelationship<Parent,Child> { /** generic interface implemented by parents */ - interface ParentHasChildren<C>{ + interface ParentHasChildren<C extends ChildHasParent>{ List<C> getChildren(); void addChild(C child); void removeChild(C child); } /** generic interface implemented by children */ - interface ChildHasParent<P>{ + interface ChildHasParent<P extends ParentHasChildren>{ P getParent(); void setParent(P parent); } |