ScoreValue.from return type #1717
Labels
for: team-attention
An issue we need to discuss as a team to make progress
status: feedback-reminder
We've sent a reminder that we need additional information before we can continue
status: waiting-for-feedback
We need additional information before we can continue
Hello! I am having problems to create a
ScoredValue
from anOptional
value in the recent release6.1.0.RELEASE
,in which the signature
ScoreValue.from(Double score, Optional<T> value)
now returnsValue
instead ofScoredValue
, and I have to explicitly cast it toScoreValue
in order to use it in theSortedStreams
api...As I see the method is creating a ScoredValue so I think it would be better to return that type directly instead of using the parent
Value
. What are your thoughts? Changing the type will be a breaking change so perhaps we could have a new method to address that?The text was updated successfully, but these errors were encountered: