• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Clarification on CriteriaFind

 
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic