@@ -128,6 +128,126 @@ public Boolean isDestinationIpAddressesNot() {
128128 public void setDestinationIpAddressesNot (Boolean destination_ip_addresses_not ) {
129129 this .destination_ip_addresses_not = destination_ip_addresses_not ;
130130 }
131+
132+ @ Override
133+ public int hashCode () {
134+ final int prime = 31 ;
135+ int result = 1 ;
136+ result = prime
137+ * result
138+ + ((destination_ip_addresses == null ) ? 0
139+ : destination_ip_addresses .hashCode ());
140+ result = prime
141+ * result
142+ + ((destination_ip_addresses_not == null ) ? 0
143+ : destination_ip_addresses_not .hashCode ());
144+ result = prime
145+ * result
146+ + ((destination_port_max == null ) ? 0 : destination_port_max
147+ .hashCode ());
148+ result = prime
149+ * result
150+ + ((destination_port_min == null ) ? 0 : destination_port_min
151+ .hashCode ());
152+ result = prime
153+ * result
154+ + ((destination_port_not == null ) ? 0 : destination_port_not
155+ .hashCode ());
156+ result = prime * result
157+ + ((ethertype == null ) ? 0 : ethertype .hashCode ());
158+ result = prime * result
159+ + ((protocol == null ) ? 0 : protocol .hashCode ());
160+ result = prime
161+ * result
162+ + ((source_ip_addresses == null ) ? 0 : source_ip_addresses
163+ .hashCode ());
164+ result = prime
165+ * result
166+ + ((source_ip_addresses_not == null ) ? 0
167+ : source_ip_addresses_not .hashCode ());
168+ result = prime * result
169+ + ((source_port_max == null ) ? 0 : source_port_max .hashCode ());
170+ result = prime * result
171+ + ((source_port_min == null ) ? 0 : source_port_min .hashCode ());
172+ result = prime * result
173+ + ((source_port_not == null ) ? 0 : source_port_not .hashCode ());
174+ return result ;
175+ }
176+
177+ @ Override
178+ public boolean equals (Object obj ) {
179+ if (this == obj )
180+ return true ;
181+ if (obj == null )
182+ return false ;
183+ if (getClass () != obj .getClass ())
184+ return false ;
185+ Match other = (Match ) obj ;
186+ if (destination_ip_addresses == null ) {
187+ if (other .destination_ip_addresses != null )
188+ return false ;
189+ } else if (!destination_ip_addresses
190+ .equals (other .destination_ip_addresses ))
191+ return false ;
192+ if (destination_ip_addresses_not == null ) {
193+ if (other .destination_ip_addresses_not != null )
194+ return false ;
195+ } else if (!destination_ip_addresses_not
196+ .equals (other .destination_ip_addresses_not ))
197+ return false ;
198+ if (destination_port_max == null ) {
199+ if (other .destination_port_max != null )
200+ return false ;
201+ } else if (!destination_port_max .equals (other .destination_port_max ))
202+ return false ;
203+ if (destination_port_min == null ) {
204+ if (other .destination_port_min != null )
205+ return false ;
206+ } else if (!destination_port_min .equals (other .destination_port_min ))
207+ return false ;
208+ if (destination_port_not == null ) {
209+ if (other .destination_port_not != null )
210+ return false ;
211+ } else if (!destination_port_not .equals (other .destination_port_not ))
212+ return false ;
213+ if (ethertype == null ) {
214+ if (other .ethertype != null )
215+ return false ;
216+ } else if (!ethertype .equals (other .ethertype ))
217+ return false ;
218+ if (protocol == null ) {
219+ if (other .protocol != null )
220+ return false ;
221+ } else if (!protocol .equals (other .protocol ))
222+ return false ;
223+ if (source_ip_addresses == null ) {
224+ if (other .source_ip_addresses != null )
225+ return false ;
226+ } else if (!source_ip_addresses .equals (other .source_ip_addresses ))
227+ return false ;
228+ if (source_ip_addresses_not == null ) {
229+ if (other .source_ip_addresses_not != null )
230+ return false ;
231+ } else if (!source_ip_addresses_not
232+ .equals (other .source_ip_addresses_not ))
233+ return false ;
234+ if (source_port_max == null ) {
235+ if (other .source_port_max != null )
236+ return false ;
237+ } else if (!source_port_max .equals (other .source_port_max ))
238+ return false ;
239+ if (source_port_min == null ) {
240+ if (other .source_port_min != null )
241+ return false ;
242+ } else if (!source_port_min .equals (other .source_port_min ))
243+ return false ;
244+ if (source_port_not == null ) {
245+ if (other .source_port_not != null )
246+ return false ;
247+ } else if (!source_port_not .equals (other .source_port_not ))
248+ return false ;
249+ return true ;
250+ }
131251
132252
133253}
0 commit comments