private List<OFStatistics> filterTableListPerContainer( String container, long switchId, List<OFStatistics> list) { if (list == null) { return Collections.emptyList(); } // Create new filtered list of node tables List<OFStatistics> newList = new ArrayList<OFStatistics>(); for (OFStatistics stat : list) { OFTableStatistics target = (OFTableStatistics) stat; NodeTable nt = NodeTableCreator.createOFNodeTable(target.getTableId(), NodeCreator.createOFNode(switchId)); if (containerOwnsNodeTable(container, nt)) { newList.add(target); } } return newList; }
public List<OFStatistics> filterTableListPerContainer( String container, long switchId, List<OFStatistics> list) { if (list == null) { return null; } // Create new filtered list of node tables List<OFStatistics> newList = new ArrayList<OFStatistics>(); for (OFStatistics stat : list) { OFTableStatistics target = (OFTableStatistics) stat; NodeTable nt = NodeTableCreator.createOFNodeTable( target.getTableId(), NodeCreator.createOFNode(switchId)); if (containerOwnsNodeTable(container, nt)) { newList.add(target); } } return newList; }