- summary How to perform JOINs between IndexedCollections
- labels Featured
<wiki:toc max_depth="2"></wiki:toc>
Given a collection of Cars, and a collections of Garages, find cars which are convertible or which have a sunroof, which can be serviced by garages in a particular city. Source code of this example here.
The example above prints:
Ford Focus has a sunroof or is convertible, and can be serviced in Dublin BMW M3 has a sunroof or is convertible, and can be serviced in Dublin
Given a collection of Cars, and a collections of Garages, find cars which are convertible or which have a sunroof, which can be serviced by garages in a particular city, along with the names of those garages. Source code of this example here.
The example above prints:
Ford Focus has a sunroof or is convertible, and can be serviced in Dublin at the following garages:- ---> Garage{garageId=4, name='Jill's garage', location='Dublin', brandsServiced=[Ford Focus]} ---> Garage{garageId=3, name='John's garage', location='Dublin', brandsServiced=[Ford Focus, Ford Taurus]} BMW M3 has a sunroof or is convertible, and can be serviced in Dublin at the following garages:- ---> Garage{garageId=2, name='Jane's garage', location='Dublin', brandsServiced=[BMW M3]}