return !this.intersetcs(filter);
/** * Utility function to check if two lists of container flows share any same * or overlapping container flows. * * @param oneFlowList * One of the two lists of container flows to test * @param twoFlowList * One of the two lists of container flows to test * @return The status of the check. Either SUCCESS or CONFLICT. In case of * conflict, the Status will contain the description for the failed * check. */ private Status checkCommonContainerFlow(List<ContainerFlow> oneFlowList, List<ContainerFlow> twoFlowList) { for (ContainerFlow oneFlow : oneFlowList) { for (ContainerFlow twoFlow : twoFlowList) { if (oneFlow.getMatch().intersetcs(twoFlow.getMatch())) { return new Status(StatusCode.CONFLICT, String.format("Flow Specs overlap: %s %s", oneFlow.getMatch(), twoFlow.getMatch())); } } } return new Status(StatusCode.SUCCESS); }
if (!this.intersetcs(other)) { return null;