hasSameSample method
Checks whether the group has the same structure.
Implementation
bool hasSameSample(Group group) {
return activityType == group.activityType &&
groupType == group.groupType &&
startTime == group.startTime &&
endTime == group.endTime;
}