hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/InProgressPool.java
public List<Map.Entry<String, Integer>> filterContainer(
      Predicate<Map.Entry<String, Integer>> predicate) {
    return containerCountMap.entrySet().stream()
        .filter(predicate).collect(Collectors.toList());
  }
/**
   * Filter the containers based on specific rules.
   *
   * @param predicate -- Predicate to filter by
   * @return A list of map entries.
   */
Filter the containers based on specific rules.
@param predicate -- Predicate to filter by
@return A list of map entries.
Filter the containers based on specific rules . @param predicate -- Predicate to filter by @return A list of map entries .
public List<Map.Entry<String, Integer>> filterContainer(
      Predicate<Map.Entry<String, Integer>> predicate) {
    return containerCountMap.entrySet().stream()
        .filter(predicate).collect(Collectors.toList());
  }
public List < Map . Entry < String , Integer > > filterContainer ( Predicate < Map . Entry < String , Integer > > predicate ) { return containerCountMap . entrySet ( ) . stream ( ) . filter ( predicate ) . collect ( Collectors . toList ( ) ) ; }
Filter the containers based on specific rules.
Filter the containers based on specific rules .