Re: Refactoring into ravioli code
- From: Bizonho <aguiar.marcio@xxxxxxxxx>
- Date: Sun, 27 Jan 2008 12:41:39 -0800 (PST)
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
.
- References:
- Refactoring into ravioli code
- From: chris_a_brooks
- Re: Refactoring into ravioli code
- From: Daniel T.
- Re: Refactoring into ravioli code
- From: chris_a_brooks
- Re: Refactoring into ravioli code
- From: Daniel T.
- Refactoring into ravioli code
- Prev by Date: Re: sale.submit() or submitter.submit(sale)
- Next by Date: Re: Refactoring into ravioli code
- Previous by thread: Re: Refactoring into ravioli code
- Next by thread: Re: Refactoring into ravioli code
- Index(es):