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="Mark Space, post: 3438086"] Maybe I missed something, but why not just set bigData to null when you are done? If all you need is theFeatureValue, after you calculate it, just empty out the LinkedList. public MyClass { int someID; List<ManyOfThem> bigData; public void removeAll() { bigData = null; } } That leaves you with a MyClass for the reference in MyFeature, and the int someID still set. The List will be garbage collected when the JVM is ready. If it makes difference in user experience, you can ask that the gc clean up objects with a call to System.gc(); Or maybe Lew already said that and I just missed it. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Class hierarchy prolem
Top