Start line:  
End line:  

Snippet Preview

Snippet HTML Code

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

Parameters:
summonerID the summoner to get match history for
Returns:
the 15 most recent matches for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerID) {
         final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerID);
 
         if(hist.getMatches() == null) {
             return null;
         }
 
         final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
         for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
             history.add(new MatchSummary(match));
         }
 
         if(. == .) {
             RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
             RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
             RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
             RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
             RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
             RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
         }
 
         return Collections.unmodifiableList(history);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndex) {
         final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDbeginIndex);
 
         if(hist.getMatches() == null) {
             return null;
         }
 
         final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
         for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
             history.add(new MatchSummary(match));
         }
 
         if(. == .) {
             RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
             RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
             RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
             RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
             RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
             RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
         }
 
         return Collections.unmodifiableList(history);
     }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
championIDs the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
 
     public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal List<LongchampionIDs) {
         if(championIDs.isEmpty()) {
             return Collections.emptyList();
         }
 
         final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDbeginIndexchampionIDs);
 
         if(hist.getMatches() == null) {
             return null;
         }
 
         final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
         for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
             history.add(new MatchSummary(match));
         }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueType) {
        final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDbeginIndexqueueType);
        if(hist.getMatches() == null) {
            return null;
        }
        final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
        for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
            history.add(new MatchSummary(match));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summonerID the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final long summonerIDfinal int beginIndexfinal QueueType queueTypefinal List<LongchampionIDs) {
        if(championIDs.isEmpty()) {
            return Collections.emptyList();
        }
        final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDbeginIndexqueueTypechampionIDs);
        if(hist.getMatches() == null) {
            return null;
        }
        final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
        for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
            history.add(new MatchSummary(match));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summonerID the summoner to get match history for
championIDs the champions to limit games to
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final long summonerIDfinal List<LongchampionIDs) {
        if(championIDs.isEmpty()) {
            return Collections.emptyList();
        }
        final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDchampionIDs);
        if(hist.getMatches() == null) {
            return null;
        }
        final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
        for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
            history.add(new MatchSummary(match));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summonerID the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final long summonerIDfinal QueueType queueType) {
        final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDqueueType);
        if(hist.getMatches() == null) {
            return null;
        }
        final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
        for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
            history.add(new MatchSummary(match));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summonerID the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
championIDs the champions to limit games to
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final long summonerIDfinal QueueType queueTypefinal List<LongchampionIDs) {
        if(championIDs.isEmpty()) {
            return Collections.emptyList();
        }
        final PlayerHistory hist = BaseRiotAPI.getMatchHistory(summonerIDqueueTypechampionIDs);
        if(hist.getMatches() == null) {
            return null;
        }
        final List<MatchSummaryhistory = new ArrayList<>(hist.getMatches().size());
        for(final com.robrua.orianna.type.dto.matchhistory.MatchSummary match : hist.getMatches()) {
            history.add(new MatchSummary(match));
        }
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(hist.getItemIDs()));
            RiotAPI.getChampionsByID(new ArrayList<>(hist.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(hist.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(hist.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(hist.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(hist.getSummonerSpellIDs()));
        }
        return Collections.unmodifiableList(history);
    }

    

Parameters:
summoner the summoner to get match history for
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summoner) {
        return getMatchHistory(summoner.getID());
    }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndex) {
        return getMatchHistory(summoner.getID(), beginIndex);
    }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
champions the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal List<Championchampions) {
        final List<LongIDs = new ArrayList<>();
        for(final Champion champion : champions) {
            IDs.add(champion.getID());
        }
        return getMatchHistory(summoner.getID(), beginIndexIDs);
    }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal QueueType queueType) {
        return getMatchHistory(summoner.getID(), beginIndexqueueType);
    }

    

Parameters:
summoner the summoner to get match history for
beginIndex the game index to start from
queueType the queue type to limit games to (only ranked queues)
champions the champions to limit games to
Returns:
the 15 most recent matches after beginIndex for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal int beginIndexfinal QueueType queueTypefinal List<Championchampions) {
        final List<LongIDs = new ArrayList<>();
        for(final Champion champion : champions) {
            IDs.add(champion.getID());
        }
        return getMatchHistory(summoner.getID(), beginIndexqueueTypeIDs);
    }

    

Parameters:
summoner the summoner to get match history for
champions the champions to limit games to
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal List<Championchampions) {
        final List<LongIDs = new ArrayList<>();
        for(final Champion champion : champions) {
            IDs.add(champion.getID());
        }
        return getMatchHistory(summoner.getID(), IDs);
    }

    

Parameters:
summoner the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal QueueType queueType) {
        return getMatchHistory(summoner.getID(), queueType);
    }

    

Parameters:
summoner the summoner to get match history for
queueType the queue type to limit games to (only ranked queues)
champions the champions to limit games to
Returns:
the 15 most recent matches for the summoner
    public static List<MatchSummarygetMatchHistory(final Summoner summonerfinal QueueType queueTypefinal List<Championchampions) {
        final List<LongIDs = new ArrayList<>();
        for(final Champion champion : champions) {
            IDs.add(champion.getID());
        }
        return getMatchHistory(summoner.getID(), queueTypeIDs);
    }
New to GrepCode? Check out our FAQ X