Skip to content

Commit

Permalink
modified Ranking prediction interface
Browse files Browse the repository at this point in the history
  • Loading branch information
athawk81 committed Aug 14, 2015
1 parent c851cf5 commit c64a619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -32,7 +32,7 @@
be accompanied by a bump in version number, regardless of how minor the change.
-->

<version>0.9.6</version>
<version>0.9.7</version>

<repositories>
<repository>
Expand Down
Expand Up @@ -13,17 +13,17 @@
* Created by alexanderhawk on 8/13/15.
*/
public class RankingPrediction {
private List<Serializable> rankedItems = Lists.newArrayList();
private List<? extends Serializable> rankedItems = Lists.newArrayList();
private Map<Serializable, Integer> itemsToRanks = Maps.newHashMap();

public RankingPrediction(List<Serializable> rankedItems) {
public RankingPrediction(List<? extends Serializable> rankedItems) {
this.rankedItems = rankedItems;
for (int i = 0; i<rankedItems.size(); i++) {
Serializable item = rankedItems.get(i);
itemsToRanks.put(item, i+1);
}
}
public List<Serializable> getRankOrder(){
public List<? extends Serializable> getRankOrder(){
return rankedItems;
}

Expand Down

0 comments on commit c64a619

Please sign in to comment.