func (rules IngressRules) EqualTo(other IngressRules) bool {
	if len(rules) != len(other) {
		return false
	}

	rules.Sort()
	other.Sort()

	for i, thisRule := range rules {
		if !thisRule.EqualTo(other[i]) {
			return false
		}
	}
	return true
}
// EqualTo returns true if this rule list is equal to the provided rule list.
EqualTo returns true if this rule list is equal to the provided rule list.
// EqualTo returns true if this rule list is equal to the provided rule list .
func (rules IngressRules) EqualTo(other IngressRules) bool {
	if len(rules) != len(other) {
		return false
	}
	rules.Sort()
	other.Sort()
	for i, thisRule := range rules {
		if !thisRule.EqualTo(other[i]) {
			return false
		}
	}
	return true
}
func ( rules IngressRules ) EqualTo ( other IngressRules ) bool { if len ( rules ) != len ( other ) { return false } rules . Sort ( ) other . Sort ( ) for i , thisRule := range rules { if ! thisRule . EqualTo ( other [ i ] ) { return false } } return true }
EqualTo returns true if this rule list is equal to the provided rule list.
EqualTo returns true if this rule list is equal to the provided rule list .