Is your feature request related to a problem? Please describe.
I run into cases where there may or not be multiple groups in a stream. In this case, I would like to NOT put a header (groupSeparatorBuilder) on the single group, as it's redundant.
Describe the solution you'd like
Perhaps a boolean hideSingleGroupSeparator, which if set to true, would ignore the groupSeparatorBuilder completely in cases where there was only one group.
Is your feature request related to a problem? Please describe. I run into cases where there may or not be multiple groups in a stream. In this case, I would like to NOT put a header (groupSeparatorBuilder) on the single group, as it's redundant.
Describe the solution you'd like Perhaps a boolean hideSingleGroupSeparator, which if set to true, would ignore the groupSeparatorBuilder completely in cases where there was only one group.