Menu

#27 Common interface on ProjectFile and Task for getChildTasks()

closed-fixed
Jon Iles
None
5
2021-07-12
2013-10-24
Nick Burch
No

Currently, both ProjectFile and Task provide methods

public List<task> getChildTasks()
int getChildTaskCount()</task>

If there was a common interface that both worked on, it would make writing a generic task tree walker much simpler, as it could then work with both

Discussion

  • Nick Burch

    Nick Burch - 2013-10-24

    There are also some common parts between Task and Resource, eg ID / Name / Notes / Hyperlink, which would be good to have a common interface for too

     
  • Jon Iles

    Jon Iles - 2013-11-08

    I've addressed the first part of this request. I've removed getChildTaskCount as it was a bit redundant... it was only hiding a call to size() on the list of child tasks. There is now a new interface shared between ProjectFile and Task which provides getChildTasks().

     
  • Jon Iles

    Jon Iles - 2021-07-12
    • status: open --> closed-fixed
    • assigned_to: Jon Iles
     
  • Jon Iles

    Jon Iles - 2021-07-12

    Just doing some housekeeping, looks like I didn't close this ticket at the time I addressed the comments.

     

Log in to post a comment.

MongoDB Logo MongoDB