Type Safe Collections?
From: Ken (kk_oop_at_yahoo.com)
Date: 05/31/04
- Next message: Ken: "Make Array Unmodifiable?"
- Previous message: Ryan Stewart: "Re: help needed on custom tag development"
- Next in thread: Martin Honnen: "Re: Type Safe Collections?"
- Reply: Martin Honnen: "Re: Type Safe Collections?"
- Reply: Ryan Stewart: "Re: Type Safe Collections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 May 2004 05:45:05 -0700
It seems that java collections (other than arrays) are not type safe.
I say this since they hold items of type "object." IOW, the type
checking can't be done at compile time, and at run time it seems you
can't guarantee that a given collection will be used for a particular
data type. Is there a standard approach or pattern used to make a
collection type safe?
Thanks,
Ken
- Next message: Ken: "Make Array Unmodifiable?"
- Previous message: Ryan Stewart: "Re: help needed on custom tag development"
- Next in thread: Martin Honnen: "Re: Type Safe Collections?"
- Reply: Martin Honnen: "Re: Type Safe Collections?"
- Reply: Ryan Stewart: "Re: Type Safe Collections?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|