commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi" <koji.sekigu...@bluemartini.com>
Subject [collections] WeakReference at CursorableLinkedList
Date Wed, 18 Aug 2004 00:11:45 GMT
In CursorableLinkedList class javadoc, it says

"Closing the cursor is optional because references are held via a
WeakReference."

I cannot understand what advantage is by having WeakReference to hold
cursor references from applications perspective? Although the javadoc
says about backwards compatibility and application may be able to close
the cursor, I think the class can just provide NOP close method for
backwards
compatibility (without WeakReference).

regards,

Koji



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message