I have
class Activity {
int id;
ActivityType activityType;
}
class ActivityType {
int id;
}
class Tournament {
int id;
List<Activity> activities;
}
I have a
List<Tournament> tournaments;
And from that I need
Map<Tournament, Map<ActivityType, Map<Integer, Activity>>>
(where the Integer
is the activityId
)
How do I get that using Java 8?