Hacker News new | ask | show | jobs
by cmicali 3965 days ago
Agree this would be the idiomatic java way to do it.

I would greatly prefer this approach - it is clear, consistent with common java practices, and self-documenting: you don't even really need to know java to understand what this does.