View Javadoc
1 package net.sf.flock.filter; 2 3 import java.util.Collections; 4 import java.util.Comparator; 5 import java.util.List; 6 7 import net.sf.flock.FilterI; 8 9 public class SortByDate implements FilterI { 10 11 private final Comparator comparator; 12 13 public SortByDate() { 14 this.comparator = new ItemDateComparator(); 15 } 16 17 public List filter(List items) { 18 Collections.sort(items, this.comparator); 19 return items; 20 } 21 22 }

This page was automatically generated by Maven