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%2FOFPActionPush.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2Faction%2FOFPActionPush.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=0ca682d51e0b285b1866940ea28d4542c7bd9cae;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionPush.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionPush.java deleted file mode 100644 index 0ca682d5..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/action/OFPActionPush.java +++ /dev/null @@ -1,70 +0,0 @@ -/** - * @author Yugandhar Sarraju (ysarraju@in.ibm.com) - July 20, 2013 - */ -package org.openflow.codec.protocol.action; - -import org.openflow.codec.io.IDataBuffer; - -/** - * Represents an action struct ofp_action_push - */ -public class OFPActionPush extends OFPAction { - public static int MINIMUM_LENGTH = 8; - - protected short etherType; - - /** - * @return the etherType - */ - public short getEtherType() { - return etherType; - } - - /** - * @param etherType - * the etherType to set - */ - public void setEtherType(short etherType) { - this.etherType = etherType; - } - - @Override - public void readFrom(IDataBuffer data) { - super.readFrom(data); - this.etherType = data.getShort(); - data.getShort(); - } - - @Override - public void writeTo(IDataBuffer data) { - super.writeTo(data); - data.putShort(this.etherType); - data.putShort((short) 0); - } - - @Override - public int hashCode() { - final int prime = 389; - int result = super.hashCode(); - result = prime * result + etherType; - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) { - return true; - } - if (!super.equals(obj)) { - return false; - } - if (!(obj instanceof OFPActionPush)) { - return false; - } - OFPActionPush other = (OFPActionPush) obj; - if (etherType != other.etherType) { - return false; - } - return true; - } -} \ No newline at end of file