本文整理匯總了Java中pro.lukasgorny.enums.PUBGStat類的典型用法代碼示例。如果您正苦於以下問題:Java PUBGStat類的具體用法?Java PUBGStat怎麽用?Java PUBGStat使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PUBGStat類屬於pro.lukasgorny.enums包,在下文中一共展示了PUBGStat類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getStatFromSeasonMatches
import pro.lukasgorny.enums.PUBGStat; //導入依賴的package包/類
public Stat getStatFromSeasonMatches(final List<Match> matches, final PUBGStat statName) {
Match match = getMatchFromSeason(matches);
for (Stat stat : match.getStats()) {
if(statName.getLabelName().equals(stat.getField())) {
return stat;
}
}
return null;
}
示例2: getPlayerMatchStatByStatName
import pro.lukasgorny.enums.PUBGStat; //導入依賴的package包/類
@Override
public Stat getPlayerMatchStatByStatName(@Nonnull final Player player, @Nonnull final PUBGStat stat) {
return matchStatFilterService.getStatFromSeasonMatches(player.getMatches(), stat);
}
示例3: getStatFromSeasonMatches
import pro.lukasgorny.enums.PUBGStat; //導入依賴的package包/類
public Stat getStatFromSeasonMatches(final List<Match> matches, final PUBGStat statName) {
Match match = getMatchFromSeason(matches);
List<Stat> results = match.getStats().stream()
.filter(stat -> statName.getLabelName().equals(stat.getField())).collect(Collectors.toList());
Preconditions.checkState(results.size() == 1, Messages.BAD_NUMBER_OF_STATS_RETURNED);
return results.get(0);
}
示例4: getPlayerMatchStatByStatName
import pro.lukasgorny.enums.PUBGStat; //導入依賴的package包/類
/**
* Filters stat by name from specified players matches from the latest season.
*
* @param player steamID of the player
* @param stat specifies what stat you want to be filtered
* @return Object with stat data
*/
Stat getPlayerMatchStatByStatName(@Nonnull Player player, @Nonnull final PUBGStat stat);