aspose file tools*
The moose likes Java in General and the fly likes Primitive collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Primitive collections" Watch "Primitive collections" New topic
Author

Primitive collections

Chinmay Bajikar
Ranch Hand

Joined: Dec 08, 2001
Posts: 159
Hi all,
Is there any way for me in Java 1.4 to have a collection(a vector preferably) of primitive elements like int,float instead of Integer,Float(wrapper classes).
Also is there any significant difference between as 'int'(primitive) and an 'Integer'(Object) in terms of mem consumption or speed or storage space.
Thanks,
Chinmay...
[ January 15, 2003: Message edited by: Chinmay Bajikar ]

The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1135

Chinmay,
I don't know if this helps you, but I did a search at "http://sourceforge.net" for "java primitive collection", and found the following:
http://sourceforge.net/projects/trove4j/
http://sourceforge.net/projects/pcj/
http://sourceforge.net/projects/jaxlib/
Hope it helps you.
Good Luck,
Avi.
Chinmay Bajikar
Ranch Hand

Joined: Dec 08, 2001
Posts: 159
Hey Avi,
Thanks for those links.
Right now I will be looking at those.
will let u know if those help me.
Thanks,
Chinmay....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Primitive collections