Skip to content

Instantly share code, notes, and snippets.

/ Secret

Created Jul 10, 2015
What would you like to do?
public class PetBean implements Serializable {
private List<Pet> pets;
private FilterAssembler filterAssembler;
public List<Pet> getFilteredPets() {
return (List<Pet>) getFilterAssembler().filter(new ArrayList(pets));
public FilterAssembler<List<Pet>> getFilterAssembler() {
if (filterAssembler == null) {
filterAssembler = new FilterAssembler<List<Pet>>(Pet.class);
return filterAssembler;
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment