@@ -0,0 +1,834 @@
+package bzh.ys.javabyexample.pattern.filter;%0A%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.*;%0Aimport java.util.function.Function;%0Aimport java.util.stream.Collectors;%0A%0A/**%0A * Description: TODO%0A * %3Cp/%3E%0A * Date: 2014-07-23 9:39 PM%0A *%0A * @author yannig%0A */%0Apublic class FilterExample %7B%0A%0A    public static void main(String%5B%5D args) throws ParseException %7B%0A        SimpleDateFormat format = new SimpleDateFormat(%22dd-MM-yyyy%22);%0A%0A        List%3CDate%3E elements = Arrays.asList( new Date%5B%5D%7Bformat.parse(%2210-02-1952%22),format.parse(%225-06-1987%22),format.parse(%228-07-1983%22)%7D );%0A        Date date = format.parse(%2210-3-1978%22);%0A%0A        System.out.println( elements );%0A%0A        elements = elements.stream().filter( e -%3E e.after(date)).collect(Collectors.toList());%0A%0A        System.out.println( elements );%0A    %7D%0A%0A%7D%0A

Add some example using filter