我有一个包含以下列的表格:
id, target (string), audience_group_id, rating (Integer), job_id
target
column 是以下值之一的字符串表示形式:预测、实际、更新
我想在 Job 类中添加方法:
Map<AudienceGroup, Integer( this it the rating)> getAudienceRatingPerPredictedPrograms()
.
我被注释困住了。我如何告诉它返回映射目标中的值是“预测的”?