I have a List<StructureA>.
Now this structure comprises of a Type: typeA & typeB.
Type here is an Enum.
StructureA comprises of fields : countryCode, Type, timeZone. StructureB comprises of fields: countryCode, timeZone
I want to convert this List into a Map<Type, Set<StructureB>>. Is this possible using streams?
StructureAandType?Type?