public virtual Scoreable normalize(List scoreableList, Scoreable bestToken) { Iterator iterator = scoreableList.iterator(); while (iterator.hasNext()) { Scoreable scoreable = (Scoreable)iterator.next(); scoreable.normalizeScore(bestToken.getScore()); } return(bestToken); }
public virtual Scoreable normalize(List scoreableList, Scoreable bestToken) { if (this.activeListProvider == null) { return(bestToken); } Token bestToken2 = this.activeListProvider.getActiveList().getBestToken(); float score = bestToken2.getScore(); Iterator iterator = scoreableList.iterator(); while (iterator.hasNext()) { Scoreable scoreable = (Scoreable)iterator.next(); if (scoreable is Token) { scoreable.normalizeScore(score); } } return(bestToken); }