Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Deep copy (clone) and merge on a Tree

    We could write our own methods to do the mentioned operations but I was just wondering...

    1) Is there a quick way to do a deep copy of a Tree?

    2) Is there a quick way to do a merge (union excluding duplicates) of two or more Trees?

    Thanks for your help!

    #2
    1) not a one-shot method, no, but you can share Trees between components in some cases

    2) not a one-shot method, but list-oriented accessors like getOpenList() make it pretty easy to use the Java built-in Collections stuff to do this.

    Comment

    Working...
    X