/** * Merges the current Flow with the passed Container Flow * * Note: Container Flow merging is not an injective function. Be m1 and m2 * two different matches, and be f() the flow merge function, such that y1 = * f(m1) and y2 = f(m2) are the two merged matches, we may have: y1 = y2 * * * @param containerFlow * @return this merged FlowEntry */ public FlowEntry mergeWith(ContainerFlow containerFlow) { Match myMatch = flow.getMatch(); Match filter = containerFlow.getMatch(); // Merge Match merge = myMatch.mergeWithFilter(filter); // Replace this Flow's match with merged version flow.setMatch(merge); return this; }