com.javadocmd.simplelatlng.window
Class FilterHelper<S>

java.lang.Object
  extended by com.javadocmd.simplelatlng.window.FilterHelper<S>
Type Parameters:
S - the type which this FilterHelper knows how to filter.

public abstract class FilterHelper<S>
extends Object

An abstract class to help LatLngWindows with the task of filtering collections based on whether or not a point is contained within the window. Rather than only filter collections of LatLng, this helper enables you to filter any class that has a LatLng value or for which a LatLng value can be computed.

An example of how you would instantiate a helper for filtering on a collection of type MyObject:

FilterHelper<MyObject> helper = new FilterHelper<MyObject>() {
    @Override
    public LatLng getLatLng(MyObject object) {
      return object.getLatLng();
    }
 }

Author:
Tyler Coles

Constructor Summary
FilterHelper()
           
 
Method Summary
abstract  LatLng getLatLng(S object)
          Returns object's LatLng value to be filtered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterHelper

public FilterHelper()
Method Detail

getLatLng

public abstract LatLng getLatLng(S object)
Returns object's LatLng value to be filtered.



Copyright © 2010-2011. All Rights Reserved.