openrtb-core/src/main/java/com/google/openrtb/util/OpenRtbUtils.java
public static boolean updateBids(
      BidResponse.Builder response, @Nullable String seatFilter,
      Function<Bid.Builder, Boolean> updater) {
    checkNotNull(updater);

    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      if (filterSeat(seatbid, seatFilter)) {
        return ProtoUtils.update(seatbid.getBidBuilderList(), updater);
      }
    }
    return false;
  }
public static boolean updateBids(
      BidResponse.Builder response, @Nullable String seatFilter,
      Function<Bid.Builder, Boolean> updater) {
    checkNotNull(updater);

    for (SeatBid.Builder seatbid : response.getSeatbidBuilderList()) {
      if (filterSeat(seatbid, seatFilter)) {
        return ProtoUtils.update(seatbid.getBidBuilderList(), updater);
      }
    }
    return false;
  }
Updates bids from a given seat.

@param seatFilter Seat ID, or {@code null} to select the anonymous seat
@param updater Update function. The {@code apply()} method can decide or not to update each
object, and it's expected to return {@code true} for objects that were updated
@return {@code true} if at least one bid was updated
@see ProtoUtils#update(Iterable, Function) for more general updating support