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
posted 8 years ago
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