I do not think
you should use Data.find() to implement your criteriaFind() method.
From what I understood, find() looks for the first instance of the search criteria and returns the record. I think this will work fine if each record has a unique field like Flight number.
This method will not work if the data structure is:
Flight Origin Destination
1 LAX SFO
2 SFT LAX
We will not be able to find flights arriving in LAX. Using this method, we will always hit record one and never be able to reach record 2.
I am waiting for your comments.
Mohnish
------------------