/** * Iterates through all the extension points and finds the first matching * Point extension. * * NOTE(pingc): Made package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A point extension point. This includes GeoRssWhere that may only * contain a box. */ static Point getPointExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Point) { return (Point) e; } } return null; }
/** * Iterates through all the extension points and finds the first matching * Point extension. * * NOTE(pingc): Made package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A point extension point. This includes GeoRssWhere that may only * contain a box. */ static Point getPointExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Point) { return (Point) e; } } return null; }
/** * Iterates through all the extension points and finds the first matching * Box extension (any box extension). * * NOTE(pingc): Package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A box extension point. This includes GeoRssWhere that may only * contain a point. */ static Box getBoxExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Box) { return (Box) e; } } return null; }
/** * Iterates through all the extension points and finds the first matching * Box extension (any box extension). * * NOTE(pingc): Package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A box extension point. This includes GeoRssWhere that may only * contain a point. */ static Box getBoxExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Box) { return (Box) e; } } return null; }
/** * Iterates through all the extension points and finds the first matching * Box extension (any box extension). * * NOTE(pingc): Package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A box extension point. This includes GeoRssWhere that may only * contain a point. */ static Box getBoxExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Box) { return (Box) e; } } return null; }
/** * Iterates through all the extension points and finds the first matching * Point extension. * * NOTE(pingc): Made package private for testing. DO NOT USE. * * @param ext The extension point to search through. * @return A point extension point. This includes GeoRssWhere that may only * contain a box. */ static Point getPointExtension(ExtensionPoint ext) { for (Extension e : ext.getExtensions()) { if (e instanceof Point) { return (Point) e; } } return null; }