import com.google.common.base.Joiner;\r
\r
/**\r
- * Class for easy creation of matches\r
+ * Deserializes ofp_match (OpenFlow v1.3) and its oxm_fields structures\r
* @author timotej.kubas\r
* @author michal.polkorab\r
*/\r
/**\r
* Creates match\r
* @param in input ByteBuf\r
- * @return ofp_match\r
+ * @return ofp_match (OpenFlow v1.3)\r
*/\r
public static Match createMatch(ByteBuf in) {\r
if (in.readableBytes() > 0) {\r
}\r
\r
/**\r
+ * Deserializes single match entry (oxm_field)\r
* @param in input ByteBuf\r
- * @param matchLength to infer size of array\r
- * @return MatchEntriesList\r
+ * @param matchLength length of match entry\r
+ * @return MatchEntriesList list containing one match entry\r
*/\r
public static List<MatchEntries> createMatchEntry(ByteBuf in, int matchLength) {\r
return createMatchEntriesInternal(in, matchLength, true);\r
\r
/**\r
* @param in input ByteBuf\r
- * @param matchLength to infer size of array\r
- * @return MatchEntriesList\r
+ * @param matchLength length of match entries\r
+ * @return MatchEntriesList list of match entries\r
*/\r
public static List<MatchEntries> createMatchEntries(ByteBuf in, int matchLength) {\r
return createMatchEntriesInternal(in, matchLength, false);\r