I need to filter a list of strings according to arbitrary criterias. I therefore would like to pass some kind of a filter instance to a constructor so that it can be reused without re-instantiating it on a per-frame basis.
Right now I'm thinking of just writing a simple interface with a filter(trovemap) method and then write a few implementations whose instance I'd pass to the constructor. I was wondering however if here in Terasology there is something along these lines already in use. Or if java has something like that out of the box.
Thoughts?
Right now I'm thinking of just writing a simple interface with a filter(trovemap) method and then write a few implementations whose instance I'd pass to the constructor. I was wondering however if here in Terasology there is something along these lines already in use. Or if java has something like that out of the box.
Thoughts?