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

Collection Framework Question

Anant Jagania
Ranch Hand

Joined: Oct 20, 2004
Posts: 49
Hi All,

Why the Convenience implementations in Collection framework are known as High-performance "mini-implementation"?

It includes Arrays.asList, EMPTY_SET, EMPTY_List, EMPTY_MAP as well as singleton methods and nCopies.

Thanks & Regards,
Anant
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Cute. I'd never seen those before. An immutable empty list could leave out a lot of implementation code since it doesn't have to add, retrieve or remove anything. I'd guess the "mini-implementation" has mostly empty methods or hard coded return values. I'm trying to imagine where I might use one ...


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Collection Framework Question