public static List<Trip> spatialTripFilter(List<Trip> trips,SpatialTripCutter cutter){
  List<Trip> filteredTrips=new LinkedList<>();
  for (  Trip tempTrip : trips) {
    if (cutter.spatiallyConsideringTrip(tempTrip)) {
      filteredTrips.add(tempTrip.clone());
    }
  }
  return Collections.unmodifiableList(filteredTrips);
}

public static List < Trip > spatialTripFilter ( List < Trip > trips , SpatialTripCutter cutter ) { List < Trip > filteredTrips = new LinkedList < > ( ) ; for ( Trip tempTrip : trips ) { if ( cutter . spatiallyConsideringTrip ( tempTrip ) ) { filteredTrips . add ( tempTrip . clone ( ) ) ; } } return Collections . unmodifiableList ( filteredTrips ) ; }
returns all trips in the area defined by the cutter .
