[jdom-interest] Moving Children
Jason Hunter
jhunter at collab.net
Fri Jun 15 11:49:01 PDT 2001
You can always cast to Object. But it'd do no good. Object's clone()
isn't public.
-jh-
Eric Rosenberg wrote:
>
> Couldn't you cast to Object?
>
> >
> > If you do the constructor above, then the clear() on the new list won't
> > change the backing list. It'd work if you cast it to a LinkedList, but
> > that makes you dependent on the current List choice which is going to
> > change. Too bad Cloneable doesn't have a clone() method. If it did,
> > you could cast to Cloneable.
> >
> > Looks like writing a little utility method may be your most elegant
> > solution.
> >
> > -jh-
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list