Re: Refactoring into ravioli code



What do you think about extending the collection class you're using
and adding a method that returns all elements of the collection that
matches an implemented comparison?

Like:

public class Foo<T> extends ArrayList<T> {

public ArrayList<T> getMatching(Comparator regex) {
...
}
}

Sorry about the lazyness.. but did you get the proposal? Do you think
it's a valid solution?

Cheers
.