NathanWolf / BukkitPlugins

My plugins for the Bukkit Minecraft server
mine.elmakers.com
14 stars 7 forks source link

Improve getAll() #56

Open NathanWolf opened 13 years ago

NathanWolf commented 13 years ago

Lightweight suggests: public void getAll(List<? super T> objects, Class objectType);

I agree, looks great- I think the casting may be automatic, I'll have to be sure.

I'd also love to have a version of getAll that creates and populates a List for you, but I've had some trouble getting the reflection right on that.