@Test public void testCreate_noGeometrySupplied() { final GeometryFilter filter = GeometryFilterFactory.create(null); assertTrue(filter instanceof NoConstraintGeometryFilter); }
public static GeometryFilter create(Geometry region) { if (region == null) { return new NoConstraintGeometryFilter(); } else if (region instanceof Polygon) { return new PolygonGeometryFilter(region); } throw new IllegalArgumentException("Unsupported region geometry: " + region.toString()); }
GeometryFilterFactory { public static GeometryFilter create(Geometry region) { if (region == null) { return new NoConstraintGeometryFilter(); } else if (region instanceof Polygon) { return new PolygonGeometryFilter(region); } throw new IllegalArgumentException("Unsupported region geometry: " + region.toString()); } }
GeometryFilterFactory { public static GeometryFilter create(Geometry region) { if (region == null) { return new NoConstraintGeometryFilter(); } else if (region instanceof Polygon) { return new PolygonGeometryFilter(region); } throw new IllegalArgumentException("Unsupported region geometry: " + region.toString()); }  }
GeometryFilterFactory { public static GeometryFilter create(Geometry region) { if (region == null) { return new NoConstraintGeometryFilter(); } else if (region instanceof Polygon) { return new PolygonGeometryFilter(region); } throw new IllegalArgumentException("Unsupported region geometry: " + region.toString()); }  static GeometryFilter create(Geometry region); }
GeometryFilterFactory { public static GeometryFilter create(Geometry region) { if (region == null) { return new NoConstraintGeometryFilter(); } else if (region instanceof Polygon) { return new PolygonGeometryFilter(region); } throw new IllegalArgumentException("Unsupported region geometry: " + region.toString()); }  static GeometryFilter create(Geometry region);  }