package com.cp372.server.filters;

import java.util.ArrayList;
import java.util.List;

import com.cp372.server.ShapeEntry;
import com.cp372.server.models.Point;

public class PointFilter implements ShapeFilter {

	@Override
	public Iterable<ShapeEntry> filter(Iterable<ShapeEntry> shapes,
			Object context) {

		List<ShapeEntry> results = new ArrayList<ShapeEntry>();
		
		@SuppressWarnings("unchecked")
		List<Point> shares = (ArrayList<Point>) context;

		// Filter out those that don't chare points
		for (ShapeEntry entry : shapes) {
			if (entry.getShape().hasPoints(shares)) {
				results.add(entry);
			}
		}

		return results;
	}

}

@@ -483,17 +483,17 @@
 t don't 
-c
+s
 hare poi

Correct comment spelling mistake