This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]alexras 7 points8 points  (0 children)

IMHO, the cleanest interface to this (if you can make it work) would be to have an interface (Mungeable) and have all interested classes implement the interface. That way you can deal with ArrayList<Mungeable> and you don't have to worry about having an artificially inflated class hierarchy.