Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. List<Tour> list = new ArrayList<>();
  2. list.add(new Tour("Cruise", "Aircraft", "FB+", 7));
  3. list.add(new Tour("Shopping", "Train", "FB", 5));
  4. list.add(new Tour("Shopping", "BUS", "HB", 6));
  5. list.add(new Tour("Cure", "BUS", "HB", 6));
  6. list.add(new Tour("Cure", "BUS", "HB", 6));
  7. list.add(new Tour("Cure", "Aircraft", "HB", 6));
  8. list.add(new Tour("Cure", "Aircraft", "HB", 6));
  9.  
  10.  
  11.  
  12. IParameter meal = TourMeal.HB;
  13. IParameter type = TourType.CURE;
  14. IParameter transport = TourTransport.AIRCRAFT;
  15.  
  16. IParameter[] params = new IParameter[]{meal, type, transport};
  17.  
  18. filter(list, params); /* how to implement this filter? */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement