ICV and IList support mutation (add/delete/modify).  You should just
ignore requests to add/delete/modify in your implementation.  Choose
IList unless you can't get fast random access (getItemAt)

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, January 08, 2008 9:24 PM
To: [email protected]
Subject: [flexcoders] Immutable collections?

 

Hi,

I want to expose an immutable collection (of mutable objects) to the UI,
is there some existing classes for this sort of thing? If not, which
interface should I be looking at implementing, ICollectionView or IList?


Cheers,
-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

:: Josh 'G-Funk' McDonald 
:: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  

 

Reply via email to