X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPFlowModCommand.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPFlowModCommand.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=aa4c5175d3313b32d9f7020e7900d23f4e95fee2;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPFlowModCommand.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPFlowModCommand.java deleted file mode 100644 index aa4c5175..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPFlowModCommand.java +++ /dev/null @@ -1,70 +0,0 @@ -package org.openflow.codec.protocol; - -/** - * Correspond to enum ofp_flow_mod_command - * - * @author AnilGujele - * - */ -public enum OFPFlowModCommand { - /* New flow. */ - OFPFC_ADD((byte) 0), - /* Modify all matching flows. */ - OFPFC_MODIFY((byte) 1), - /* Modify entry strictly matching wildcards and priority. */ - OFPFC_MODIFY_STRICT((byte) 2), - /* Delete all matching flows. */ - OFPFC_DELETE((byte) 3), - /* Delete entry strictly matching wildcards and priority. */ - OFPFC_DELETE_STRICT((byte) 4); - - private byte value; - - private static OFPFlowModCommand[] mapping; - - OFPFlowModCommand(byte value) { - this.value = value; - addMapping(value, this); - } - - /** - * add mapping - * - * @param key - * @param value - */ - private static void addMapping(byte index, OFPFlowModCommand value) { - if (null == mapping) { - mapping = new OFPFlowModCommand[5]; - } - mapping[index] = value; - - } - - /** - * get the enum having this value - * - * @param value - * @return - */ - public static OFPFlowModCommand valueOf(byte value) { - return mapping[value]; - } - - /** - * - * @return - */ - public byte getValue() { - return value; - } - - /** - * - * @param value - */ - public void setValue(byte value) { - this.value = value; - } - -}