thoughts on containers and items

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

thoughts on containers and items

Draško
Would it make sense to separate Item/Container from the type itself?

Something like Container<MusicAlbum> or Item<MusicTrack> could help when doing things like:

        for (MusicAlbum album : albumsContainer.getContainers()) {
            // do something with album
        }