本文整理汇总了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);