Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clarification on CriteriaFind

 
christy smile
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, All,
I have a question about CriteriaFind() method.
What is the correct behavior if the user does not either a destination or origination? Is it going to treat it as "any" is entered for the blank criteria?? What if nothing is entered at all? My implementation reports no route is available if neither is entered. But if one criteria is entered, it will treat the empty criteria as "any" and use the other criteria to search. Is this the correct interpretation??
Thank you!
Christy
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this the correct interpretation??

I really believe that this is a design choice for you to decide.
If you where using the application and you wanted to search for flights, and you left them blank, what would you expect.
I expected to see all flights, but that is just me, you might think differently here and that is 100% fine.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic