X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPMatchType.java;fp=third-party%2Fopenflow-codec%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenflow%2Fcodec%2Fprotocol%2FOFPMatchType.java;h=0000000000000000000000000000000000000000;hb=64fe0fbca1a6c2b77ad25f568d73a7eb64236d16;hp=158369f4e292489724f3c6db63b791dc6a29d027;hpb=8b9a3ff2bbc83941254b46b818cbbae5cc1a3a5b;p=openflowjava.git diff --git a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPMatchType.java b/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPMatchType.java deleted file mode 100644 index 158369f4..00000000 --- a/third-party/openflow-codec/src/main/java/org/openflow/codec/protocol/OFPMatchType.java +++ /dev/null @@ -1,69 +0,0 @@ -package org.openflow.codec.protocol; - -/** - * Represents enum ofp_match_type - * - * @author AnilGujele - * - */ -public enum OFPMatchType { - OFPMT_STANDARD((short) 0), OFPMT_OXM((short) 1); - - private short type; - private static OFPMatchType[] mapping; - - /** - * constructor - * - * @param value - */ - private OFPMatchType(short value) { - type = value; - addMapping(type, this); - - } - - /** - * add mapping for match type - * - * @param index - * - match type value is index - * @param matchType - * - match type instance is value - */ - private static void addMapping(short index, OFPMatchType matchType) { - if (null == mapping) { - mapping = new OFPMatchType[2]; - } - mapping[index] = matchType; - - } - - /** - * get match type from value - * - * @param value - * @return - */ - public static OFPMatchType valueOf(short value) { - return mapping[value]; - } - - /** - * get match type value - * - * @return - */ - public short getMatchTypeValue() { - return type; - } - - /** - * set match type value - * - * @param type - */ - public void setMatchTypeValue(short type) { - this.type = type; - } -}