Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.api.core;
 
 
 
public abstract class MatchAPI {
    

Parameters:
ID the ID of the match to get
Returns:
the match
    public synchronized static Match getMatch(final long ID) {
        Match match = ..get(Match.classID);
        if(match != null) {
            return match;
        }
        final MatchDetail mtch = BaseRiotAPI.getMatch(ID);
        match = new Match(mtch);
        if(. == .) {
            RiotAPI.getItems(new ArrayList<>(mtch.getItemIDs()));
            RiotAPI.getChampions(new ArrayList<>(mtch.getChampionIDs()));
            RiotAPI.getMasteries(new ArrayList<>(mtch.getMasteryIDs()));
            RiotAPI.getRunes(new ArrayList<>(mtch.getRuneIDs()));
            RiotAPI.getSummonersByID(new ArrayList<>(mtch.getSummonerIDs()));
            RiotAPI.getSummonerSpells(new ArrayList<>(mtch.getSummonerSpellIDs()));
        }
        ..store(matchID);
        return match;
    }
New to GrepCode? Check out our FAQ X