Why is there no direct implemention of Bag in java collection framework?
问题 I can't figure out why JCF (Java Collection Framework) does't have a Bag implementation(to allow duplicates and not maintain order). Bag performance would be much better than current Collection implementations in JCF. I know how to implement Bag in java. I know there is a Bag collection in Apache common. I know i can use any implementation as a bag! but there are so much work in other implementations compare to Bag. Why has the Java Collections framework not provided direct implementations