[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [recommenders-dev] Mapping ProposalKind to CompletionEvent

Hello Timur,

> it is possible to find the corresponding CompletionEvent to a ProposalKind?
> Code
> example: StatisticsPreferencePage#appendNumberOfCompletionsByCompletionKind
> At line 246 I have only the ProposalKind and need the corresponding
> CompletionEvent. 

Please tell us what you are trying to accomplish. What should this
mapping be used for? Often we can give you a better answer if we know
what you are really trying to accomplish.

As far as your original question goes: No, you cannot map from the
ProposalKind enum to a concrete CompletionEvent; after all, there is a
1-to-n relation ship between ProposalKind and CompletionEvents. In fact,
it's very likely that, say, multiple CompletioEvents have a kind of

Hope this helps.

Codetrails UG (haftungsbeschränkt)
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Mobile: +49-170-811-3791

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940