Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 19917, TypeSafeList

by Granville Miller Email: ggmiller@mindspring.com


This custom collection class mimics the same interface and functionality of the List collection class in java.util.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Together, Version 6.0  to 6.0 57 downloads
Copyright: No significant restrictions


Size: 5,738 bytes
Updated on Wed, 07 May 2003 08:50:52 GMT
Originally uploaded on Wed, 07 May 2003 08:51:03 GMT
SHA1 Hash: 008DC1245FFEAE72FF1FE71B16A0FA02A04C4B5B
MD5 Hash: 6D81D6C14207086E0B5E5DF6D8FB5F05

    Explore the files in this upload

Description
jarrodhroberson@yahoo.com
This custom collection class mimics the same interface and functionality of the List collection class in java.util.
It does not inherit from it as all the method parameters and return values that were declared as type Object have been replaced with typesafe implementations.
The one notable exception is the absence of the toArray( Object[] o ) method as this is a type safe collection all the objects are of the same type therefore this method is not needed.
Other enhancements have been made such as a sort() operation and lots of overloaded constructors
to ease integration with legacy code that is not typesafe.
Typesafe Map and Set templates can be made in the same exact way and will reduce coding errors and time dramatically.
I also added some convience operations to expose the underling backing list implementation to
code that is not typesafe aware. Use these methods ONLY when you do not have the source to a class and need to interact with it.
I have included in the archive an example of a class I generated with the template that see
LOTS of use, a StringList class!

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Server Response from: ETNACDC03