Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Class hierarchy prolem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="dgront, post: 3438036"] Ok, so will it be OK, if I add createSimpleClass() method to MyClass? The it will be: List<MyFeature> results = ... for(Foo foo: foos) { MyClass inst = new MyClass(); inst.doSomething( foo ); MyFeature f = inst.getFeature(); f.source = inst.createSimpleClass(); // Makes a deep copy of SimpleClass data; no ManyOfThem objects are cloned list.add(f); } Does my list still keeps also ManyOfThem objects? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Class hierarchy prolem
Top