Watch, Follow, &
Connect with Us

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


ID: 19921, TypeSafeEnum

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 78 downloads
Copyright: No significant restrictions


Size: 12,904 bytes
Updated on Wed, 07 May 2003 14:41:33 GMT
Originally uploaded on Wed, 07 May 2003 14:41:41 GMT
SHA1 Hash: 201F7EE04950A16D7C9CB71C1CC06442A1090E9B
MD5 Hash: 4B9A01586BE65EEA2D10D716DDCE62D6

    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