Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.api.core;
  
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
 
 public abstract class StatsAPI {
    

Parameters:
summonerID the summoner to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final long summonerID) {
         final RankedStats sts = BaseRiotAPI.getRankedStats(summonerID);
         final List<Longindex = new ArrayList<>(sts.getChampionIDs());
         final List<Championchampions = RiotAPI.getChampionsByID(index);
 
         final Map<ChampionChampionStatsstats = new HashMap<>();
         for(final com.robrua.orianna.type.dto.stats.ChampionStats champion : sts.getChampions()) {
             stats.put(champions.get(index.indexOf(champion.getId().longValue())), new ChampionStats(champion));
         }
 
         return Collections.unmodifiableMap(stats);
     }

    

Parameters:
summonerID the summoner to get ranked stats for
season the season to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final long summonerIDfinal Season season) {
         final RankedStats sts = BaseRiotAPI.getRankedStats(summonerIDseason);
         final List<Longindex = new ArrayList<>(sts.getChampionIDs());
         final List<Championchampions = RiotAPI.getChampionsByID(index);
 
         final Map<ChampionChampionStatsstats = new HashMap<>();
         for(final com.robrua.orianna.type.dto.stats.ChampionStats champion : sts.getChampions()) {
             stats.put(champions.get(index.indexOf(champion.getId().longValue())), new ChampionStats(champion));
         }
 
         return Collections.unmodifiableMap(stats);
     }

    

Parameters:
summoner the summoner to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final Summoner summoner) {
         return getRankedStats(summoner.getID());
     }

    

Parameters:
summoner the summoner to get ranked stats for
season the season to get ranked stats for
Returns:
the ranked stats for the summoner by champion (null entry contains totals over all champions)
 
     public static Map<ChampionChampionStatsgetRankedStats(final Summoner summonerfinal Season season) {
         return getRankedStats(summoner.getID(), season);
     }

    

Parameters:
summonerID the summoner to get stats for
Returns:
the stats for the summoner by queue type
 
     public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final long summonerID) {
         final PlayerStatsSummaryList sts = BaseRiotAPI.getStats(summonerID);
 
         final Map<PlayerStatsSummaryTypePlayerStatsSummarystats = new HashMap<>();
         for(final com.robrua.orianna.type.dto.stats.PlayerStatsSummary sum : sts.getPlayerStatSummaries()) {
             stats.put(PlayerStatsSummaryType.valueOf(sum.getPlayerStatSummaryType()), new PlayerStatsSummary(sum));
         }
 
         return Collections.unmodifiableMap(stats);
     }

    

Parameters:
summonerID the summoner to get stats for
season the season to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final long summonerIDfinal Season season) {
        final PlayerStatsSummaryList sts = BaseRiotAPI.getStats(summonerIDseason);
        final Map<PlayerStatsSummaryTypePlayerStatsSummarystats = new HashMap<>();
        for(final com.robrua.orianna.type.dto.stats.PlayerStatsSummary sum : sts.getPlayerStatSummaries()) {
            stats.put(PlayerStatsSummaryType.valueOf(sum.getPlayerStatSummaryType()), new PlayerStatsSummary(sum));
        }
        return Collections.unmodifiableMap(stats);
    }

    

Parameters:
summoner the summoner to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final Summoner summoner) {
        return getStats(summoner.getID());
    }

    

Parameters:
summoner the summoner to get stats for
season the season to get stats for
Returns:
the stats for the summoner by queue type
    public static Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final Summoner summonerfinal Season season) {
        return getStats(summoner.getID(), season);
    }
New to GrepCode? Check out our FAQ X