-
-
Save anonymous/ce9a19b1a41227d813c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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