2 * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
9 package org.opendaylight.openflowjava.protocol.api.extensibility.keys;
\r
11 import org.opendaylight.openflowjava.protocol.api.extensibility.MessageCodeKey;
\r
12 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.oxm.rev130731.oxm.fields.grouping.MatchEntries;
\r
15 * @author michal.polkorab
\r
18 public class MatchEntryDeserializerKey extends MessageCodeKey {
\r
20 private int oxmField;
\r
21 private Long experimenterId;
\r
24 * @param version protocol wire version
\r
25 * @param oxmClass oxm_class (see specification)
\r
26 * @param oxmField oxm_field (see specification)
\r
28 public MatchEntryDeserializerKey(short version,
\r
29 int oxmClass, int oxmField) {
\r
30 super(version, oxmClass, MatchEntries.class);
\r
31 this.oxmField = oxmField;
\r
35 * @param experimenterId experimenter / vendor ID
\r
37 public void setExperimenterId(Long experimenterId) {
\r
38 this.experimenterId = experimenterId;
\r
42 public boolean equals(Object obj) {
\r
45 if (!super.equals(obj))
\r
47 if (getClass() != obj.getClass())
\r
49 MatchEntryDeserializerKey other = (MatchEntryDeserializerKey) obj;
\r
50 if (experimenterId == null) {
\r
51 if (other.experimenterId != null)
\r
53 } else if (!experimenterId.equals(other.experimenterId))
\r
55 if (oxmField != other.oxmField)
\r
61 public String toString() {
\r
62 return super.toString() + " oxm_field: " + oxmField + " experimenterID: " + experimenterId;
\r