Set < Flight > function ( Airport arg0 , Airport arg1 ) { Set < Flight > loc0 = flightsIndexedByFromToAirportIATACodes . get ( arg0 . getIATACode ( ) + arg1 . getIATACode ( ) ) ; if ( loc0 == null ) loc0 = new HashSet < Flight > ( ) ; return loc0 ; }
given both ` from ' and ` to ' airports , find the matching flights . concode_field_sep Map<String,Flight> flightsIndexedByFligthCode concode_elem_sep Map<String,Airport> airports concode_elem_sep Map<String,AirLine> airLines concode_elem_sep Map<String,Set<Flight>> flightsIndexedByFromToAirportIATACodes concode_field_sep Airport findAirportFromIATACode concode_elem_sep Flight findFlight concode_elem_sep AirLine findAirLineFromFlightCode concode_elem_sep void addFlightToDatabase