in flink-connector-gcp-pubsub/src/main/java/org/apache/flink/streaming/connectors/gcp/pubsub/common/AcknowledgeOnCheckpoint.java [118:124]
private int numberOfAcknowledgementIds(
List<AcknowledgeIdsForCheckpoint<ACKID>> acknowledgeIdsForCheckpoints) {
return acknowledgeIdsForCheckpoints.stream()
.map(AcknowledgeIdsForCheckpoint::getAcknowledgeIds)
.mapToInt(List::size)
.sum();
}