openrtb-core/src/main/java/com/google/openrtb/util/OpenRtbUtils.java
public static boolean removeBids(BidResponse.Builder response, Predicate<Bid.Builder> filter) {
    checkNotNull(filter);
    boolean updated = false;

    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      updated |= removeBids(seatbid, filter);
    }

    return updated;
  }
public static boolean removeBids(BidResponse.Builder response, Predicate<Bid.Builder> filter) {
    checkNotNull(filter);
    boolean updated = false;

    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      updated |= removeBids(seatbid, filter);
    }

    return updated;
  }
public static boolean removeBids ( BidResponse . Builder response , Predicate < Bid . Builder > filter ) { checkNotNull ( filter ) ; boolean updated = false ; for ( SeatBid . Builder seatbid : response . getSeatbidBuilderList ( ) ) { updated |= removeBids ( seatbid , filter ) ; } return updated ; }
Remove bids by bid.

@param filter Returns {@code true} to keep bid, {@code false} to remove
@return {@code true} if any bid was removed
@see ProtoUtils#filter(List, Predicate) for more general filtering support
Remove bids by bid .