X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Faction%2FOFPActionGroup.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Faction%2FOFPActionGroup.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=452cfa4d52d144311aecf38e89924439fb521bc6;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionGroup.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionGroup.java deleted file mode 100644 index 452cfa4d..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionGroup.java +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @author Yugandhar Sarraju (ysarraju@in.ibm.com) - Jul 20, 2013 - */ -package org.openflow.codec.protocol.action; - -import org.openflow.codec.io.IDataBuffer; - -/** - * Represents an ofp_action_group - */ -public class OFPActionGroup extends OFPAction { - public static int MINIMUM_LENGTH = 8; - - protected int groupId; - - public OFPActionGroup() { - super.setType(OFPActionType.GROUP); - super.setLength((short) MINIMUM_LENGTH); - } - - /** - * @return the groupId - */ - public int getGroupId() { - return groupId; - } - - /** - * @param groupId - * the groupId to set - */ - public void setGroupId(int groupId) { - this.groupId = groupId; - } - - @Override - public void readFrom(IDataBuffer data) { - super.readFrom(data); - this.groupId = data.getInt(); - } - - @Override - public void writeTo(IDataBuffer data) { - super.writeTo(data); - data.putInt(this.groupId); - } - - @Override - public int hashCode() { - final int prime = 353; - int result = super.hashCode(); - result = prime * result + groupId; - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (!super.equals(obj)) { - return false; - } - if (!(obj instanceof OFPActionGroup)) { - return false; - } - OFPActionGroup other = (OFPActionGroup) obj; - if (groupId != other.groupId) { - return false; - } - return true; - } -} \ No newline at end of file