public List<Entry> filter(List<Entry> points,double tolerance){
  if (tolerance <= 0)   return points;
  keep=new boolean[points.size()];
switch (mType) {
case DOUGLAS_PEUCKER:
    return reduceWithDouglasPeuker(points,tolerance);
case NONE:
  return points;
default :
return points;
}
}

public List < Entry > filter ( List < Entry > points , double tolerance ) { if ( tolerance <= 0 ) return points ; keep = new boolean [ points . size ( ) ] ; switch ( mType ) { case DOUGLAS_PEUCKER : return reduceWithDouglasPeuker ( points , tolerance ) ; case NONE : return points ; default : return points ; } }
filters according to type .
