wood burning stoves 2.0
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

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Collection Framework Question" Watch "Collection Framework Question" New topic

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,
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Collection Framework Question
It's not a secret anymore!