2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.controller.sal.action;
11 import javax.xml.bind.annotation.XmlAccessType;
12 import javax.xml.bind.annotation.XmlAccessorType;
13 import javax.xml.bind.annotation.XmlElement;
14 import javax.xml.bind.annotation.XmlRootElement;
21 @XmlAccessorType(XmlAccessType.NONE)
23 public class SetVlanCfi extends Action {
24 private static final long serialVersionUID = 1L;
28 /* Dummy constructor for JAXB */
29 @SuppressWarnings("unused")
30 private SetVlanCfi() {
33 public SetVlanCfi(int cfi) {
34 type = ActionType.SET_VLAN_CFI;
40 * Returns the 802.1q CFI value that this action will set
49 public boolean equals(Object obj) {
53 if (!super.equals(obj)) {
56 if (getClass() != obj.getClass()) {
59 SetVlanCfi other = (SetVlanCfi) obj;
60 if (cfi != other.cfi) {
67 public int hashCode() {
69 int result = super.hashCode();
70 result = prime * result + cfi;
75 public String toString() {
76 return type + "[cfi = " + Integer.toHexString(cfi) + "]";