org.onebusaway.geospatial.grid
Class FilteredGrid<T>

java.lang.Object
  extended by org.onebusaway.geospatial.grid.AbstractGrid<T>
      extended by org.onebusaway.geospatial.grid.FilteredGrid<T>
All Implemented Interfaces:
Grid<T>

public class FilteredGrid<T>
extends AbstractGrid<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.onebusaway.geospatial.grid.Grid
Grid.Entry<T>
 
Constructor Summary
FilteredGrid(Grid<T> grid, IFilter<T> filter)
           
 
Method Summary
 boolean contains(int x, int y)
           
 T get(int x, int y)
           
 Iterable<Grid.Entry<T>> getEntries()
           
 void set(int x, int y, T element)
           
 
Methods inherited from class org.onebusaway.geospatial.grid.AbstractGrid
contains, get, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredGrid

public FilteredGrid(Grid<T> grid,
                    IFilter<T> filter)
Method Detail

contains

public boolean contains(int x,
                        int y)

get

public T get(int x,
             int y)

getEntries

public Iterable<Grid.Entry<T>> getEntries()

set

public void set(int x,
                int y,
                T element)


Copyright © 2012 OneBusAway. All Rights Reserved.