question: private void scoreWaypointResults ( Collection < Waypoint > waypoints , SearchQuery query , Collection < ScoredResult > output ) { for ( Waypoint waypoint : waypoints ) { double score = scoreWaypointResult ( query , waypoint ) ; output . add ( new ScoredResult ( waypoint , score ) ) ; } }
target:  Scores a collection of waypoint results.