Skip to main content
2 of 2
added 298 characters in body
Ben Voigt
  • 283.2k
  • 10
  • 110
  • 146

Did you even stop to consider whether the 200+ users who voted for that answer know something you don't?

You said that

the answerer just doesn't understand the intricacies of the logic of obtaining an element from a Java Set

but there's no evidence to support this.

Your answer makes some good points concerning how to build a useful interface on top of the associative collections already available, but that doesn't in any way counter the answer you complained about, which is perfectly correct that it would have been easy for the original implementer to include this capability.

And unless you show some evidence that the Java framework designers considered including a get() method but had some strong reasons for omitting it, I'm inclined to also believe what the answer says about the lack of foresight, namely

They didn't anticipate your very legitimate use case

Ben Voigt
  • 283.2k
  • 10
  • 110
  • 146