[JAVA-4312] Add standard Scala collection collect method to Observable Created: 26/Sep/21  Updated: 28/Oct/23  Resolved: 28/Sep/21

Status: Closed
Project: Java Driver
Component/s: Scala
Affects Version/s: None
Fix Version/s: 4.4.0

Type: Improvement Priority: Unknown
Reporter: Scott Rice Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: external-user
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The current collect method on Observable has a different signature than the standard [collect|https://www.scala-lang.org/api/2.12.1/scala/collection/Iterable.html#collect[B](pf:PartialFunction[A,B]):Iterable[B]] method on Scala collections.

The suggestion here is to add the standard collections collect method on Observable, in addition to the non-standard collect already there.



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}

Message: Scaladocs: Remove link ambiguity for collect

Caused by the addition of a new collect method in JAVA-4312

JAVA-4337
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c50482f8125a0cbbb52dbf4e50a5699780d8d922

Comment by Ross Lawley [ 28/Sep/21 ]

Thank you scott.rice@rallyhealth.com this will be included in the 4.4.0 release.

Comment by Githook User [ 28/Sep/21 ]

Author:

{'name': 'Scott Rice', 'email': 'scottrice10@gmail.com', 'username': 'scottrice10'}

Message: JAVA-4312 Add standard Scala collections collect method (#789)
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/b28e95ef535349ab009d03ed64e522e1eac24bd3

Comment by Scott Rice [ 26/Sep/21 ]

This should have Component/s: Scala - noticed that after creating this ticket. Cannot edit after the fact.

Generated at Thu Feb 08 09:01:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.