Y
Hacker News
new
|
ask
|
show
|
jobs
by
erik_seaberg
2174 days ago
I should have written ArrayList#get. It's possible to write a class that implements List<String> in a typesafe way, but callers using the standard List interface receive an Object and have to downcast.