3 ms·
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 interfac
by erik_seaberg 6y 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.