Updated masked handling in Match interface and MatchBuilder
diff --git a/java_gen/pre-written/src/main/java/org/openflow/protocol/match/Match.java b/java_gen/pre-written/src/main/java/org/openflow/protocol/match/Match.java
index 3ff65ab..99b7de4 100644
--- a/java_gen/pre-written/src/main/java/org/openflow/protocol/match/Match.java
+++ b/java_gen/pre-written/src/main/java/org/openflow/protocol/match/Match.java
@@ -1,6 +1,7 @@
package org.openflow.protocol.match;
import org.openflow.protocol.OFObject;
+import org.openflow.types.Masked;
import org.openflow.types.OFValueType;
public interface Match extends OFObject {
@@ -27,6 +28,15 @@
public <F extends OFValueType<F>> F get(MatchField<F> field) throws UnsupportedOperationException;
/**
+ * Returns the masked value for the given field from this match.
+ * Precondition: field is partially wildcarded.
+ *
+ * @param field Match field to retrieve
+ * @return Masked value of match field or null if no mask
+ */
+ public <F extends OFValueType<F>> Masked<F> getMasked(MatchField<F> field) throws UnsupportedOperationException;
+
+ /**
* Returns true if this match object supports the given match field.
*
* @param field Match field