func (grp GroupedPortRanges) EqualTo(other GroupedPortRanges) bool {
	if len(grp) != len(other) {
		return false
	}

	for groupKey, portRanges := range grp {
		otherPortRanges, found := other[groupKey]
		if !found || len(portRanges) != len(otherPortRanges) {
			return false
		}

		SortPortRanges(portRanges)
		SortPortRanges(otherPortRanges)
		for i, pr := range portRanges {
			if pr != otherPortRanges[i] {
				return false
			}
		}
	}

	return true
}
// EqualTo returns true if this set of grouped port ranges are equal to other.
EqualTo returns true if this set of grouped port ranges are equal to other.
// EqualTo returns true if this set of grouped port ranges are equal to other .
func (grp GroupedPortRanges) EqualTo(other GroupedPortRanges) bool {
	if len(grp) != len(other) {
		return false
	}
	for groupKey, portRanges := range grp {
		otherPortRanges, found := other[groupKey]
		if !found || len(portRanges) != len(otherPortRanges) {
			return false
		}
		SortPortRanges(portRanges)
		SortPortRanges(otherPortRanges)
		for i, pr := range portRanges {
			if pr != otherPortRanges[i] {
				return false
			}
		}
	}
	return true
}
func ( grp GroupedPortRanges ) EqualTo ( other GroupedPortRanges ) bool { if len ( grp ) != len ( other ) { return false } for groupKey , portRanges := range grp { otherPortRanges , found := other [ groupKey ] if ! found || len ( portRanges ) != len ( otherPortRanges ) { return false } SortPortRanges ( portRanges ) SortPortRanges ( otherPortRanges ) for i , pr := range portRanges { if pr != otherPortRanges [ i ] { return false } } } return true }
EqualTo returns true if this set of grouped port ranges are equal to other.
EqualTo returns true if this set of grouped port ranges are equal to other .