Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Tour> list = new ArrayList<>();
- list.add(new Tour("Cruise", "Aircraft", "FB+", 7));
- list.add(new Tour("Shopping", "Train", "FB", 5));
- list.add(new Tour("Shopping", "BUS", "HB", 6));
- list.add(new Tour("Cure", "BUS", "HB", 6));
- list.add(new Tour("Cure", "BUS", "HB", 6));
- list.add(new Tour("Cure", "Aircraft", "HB", 6));
- list.add(new Tour("Cure", "Aircraft", "HB", 6));
- IParameter meal = TourMeal.HB;
- IParameter type = TourType.CURE;
- IParameter transport = TourTransport.AIRCRAFT;
- IParameter[] params = new IParameter[]{meal, type, transport};
- filter(list, params); /* how to implement this filter? */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement