use of org.onebusaway.admin.search.impl.RevenueServiceFilter in project onebusaway-application-modules by camsys.
the class VehicleSearchServiceImpl method searchVehiclesInRevenueService.
@Override
public List<VehicleStatus> searchVehiclesInRevenueService(List<VehicleStatus> vehicleStatusRecords) {
Filter<VehicleStatus> revenueServiceFilter = new RevenueServiceFilter();
List<VehicleStatus> vehiclesInRevenueService = new ArrayList<VehicleStatus>();
for (VehicleStatus vehicleStatus : vehicleStatusRecords) {
if (revenueServiceFilter.apply(vehicleStatus)) {
vehiclesInRevenueService.add(vehicleStatus);
}
}
return vehiclesInRevenueService;
}
Aggregations