It seems unlikely that the benefits these classes have outweigh the cost of having all that extra code.
It is worth noting that the Collections class helper functions special case zero, one and two element cases these days.
Collections
Unscheduling for now.
Particularly in the OpenSAML XML objects?
Indeed - metadata back in the old aggregate days.
some measurement was originally done to justify it
I’m pretty sure there was.
, most of which are empty and some grow later
Yea, the ArrayList.add code deals with exactly this case these days. I’m not sure what it does for singleton and doubles,,,
ArrayList.add
It seems unlikely that the benefits these classes have outweigh the cost of having all that extra code.
It is worth noting that the
Collections
class helper functions special case zero, one and two element cases these days.