Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.summoner;
  
  import java.util.List;
  import java.util.Map;
  
 
 public class Summoner implements Serializable {
     private static final long serialVersionUID = 3567907646302193607L;
     public final Long IDsummonerLevel;
     public final String name;
     public final Integer profileIconID;
     public final LocalDateTime revisionDate;
 
     public Summoner(final Long IDfinal Long summonerLevelfinal String namefinal Integer profileIconIDfinal LocalDateTime revisionDate) {
         this. = ID;
         this. = summonerLevel;
         this. = name;
         this. = profileIconID;
         this. = revisionDate;
     }
 
     @Override
     public boolean equals(final Object obj) {
         if(this == obj) {
             return true;
         }
         if(obj == null) {
             return false;
         }
         if(!(obj instanceof Summoner)) {
             return false;
         }
         final Summoner other = (Summoner)obj;
         if( == null) {
             if(other.ID != null) {
                 return false;
             }
         }
         else if(!.equals(other.ID)) {
             return false;
         }
         return true;
     }

    

Parameters:
API the API to get the data with
Returns:
the summoner's active mastery page
See also:
LoL API Specification
 
     public MasteryPage getActiveMasteryPage(final RiotAPI API) {
         return API.getActiveMasteryPage(this);
     }

    

Parameters:
API the API to get the data with
Returns:
the summoner's active rune page
See also:
LoL API Specification
 
     public RunePage getActiveRunePage(final RiotAPI API) {
         return API.getActiveRunePage(this);
     }

    

Parameters:
API the API to get the data with
Returns:
the summoner's leagues
See also:
LoL API Specification
 
     public List<LeaguegetLeagueEntries(final RiotAPI API) {
         return API.getLeagueEntriesBySummoner(this);
     }

    

Parameters:
API the API to get the data with
Returns:
the summoner's leagues
See also:
LoL API Specification
 
     public List<LeaguegetLeagues(final RiotAPI API) {
         return API.getLeaguesBySummoner(this);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's mastery pages
See also:
LoL API Specification
    public List<MasteryPagegetMasteryPages(final RiotAPI API) {
        return API.getMasteryPages(this);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's match history
See also:
LoL API Specification
    public List<MatchSummarygetMatchHistory(final RiotAPI API) {
        return getMatchHistory(APInullnullnullnull);
    }

    

Parameters:
API the API to get the data with
beginIndex the begin index to use for fetching games. No more than 15 games will be fetched.
endIndex the end index to use for fetching games. No more than 15 games will be fetched.
Returns:
the summoner's match history
See also:
LoL API Specification
    public List<MatchSummarygetMatchHistory(final RiotAPI APIfinal Integer beginIndexfinal Integer endIndex) {
        return getMatchHistory(APInullnullbeginIndexendIndex);
    }

    

Parameters:
API the API to get the data with
champions which champions to limit this search to
rankedQueues which queues to limit this search to. Any queues other than RANKED_SOLO_5x5, RANKED_TEAM_5x5, and RANKED_TEAM_3x3 will be ignored.
Returns:
the summoner's match history
See also:
LoL API Specification
    public List<MatchSummarygetMatchHistory(final RiotAPI APIfinal List<Championchampionsfinal List<QueueTyperankedQueues) {
        return getMatchHistory(APIchampionsrankedQueuesnullnull);
    }

    

Parameters:
API the API to get the data with
champions which champions to limit this search to
rankedQueues which queues to limit this search to. Any queues other than RANKED_SOLO_5x5, RANKED_TEAM_5x5, and RANKED_TEAM_3x3 will be ignored.
beginIndex the begin index to use for fetching games. No more than 15 games will be fetched.
endIndex the end index to use for fetching games. No more than 15 games will be fetched.
Returns:
the summoner's match history
See also:
LoL API Specification
    public List<MatchSummarygetMatchHistory(final RiotAPI APIfinal List<Championchampionsfinal List<QueueTyperankedQueuesfinal Integer beginIndex,
            final Integer endIndex) {
        return API.getMatchHistory(thischampionsrankedQueuesbeginIndexendIndex);
    }

    
Entries are by champion name, include "All Champions" for totals.

Parameters:
API the API to get the data with
Returns:
the summoner's ranked stats
See also:
LoL API Specification
    public Map<StringChampionStatsgetRankedStats(final RiotAPI API) {
        return API.getRankedStats(this);
    }

    

Parameters:
API the API to get the data with
season the season to get data for
Returns:
the summoner's ranked stats
See also:
LoL API Specification
    public Map<StringChampionStatsgetRankedStats(final RiotAPI APIfinal Season season) {
        return API.getRankedStats(thisseason);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's recent games
See also:
LoL API Specification
    public List<GamegetRecentGames(final RiotAPI API) {
        return API.getRecentGames(this);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's rune pages
See also:
LoL API Specification
    public List<RunePagegetRunePages(final RiotAPI API) {
        return API.getRunePages(this);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's stats summary
See also:
LoL API Specification
        return API.getSummonerStats(this);
    }

    

Parameters:
API the API to get the data with
season the season to get data for
Returns:
the summoner's stats summary
See also:
LoL API Specification
    public Map<PlayerStatsSummaryTypePlayerStatsSummarygetStats(final RiotAPI APIfinal Season season) {
        return API.getSummonerStats(thisseason);
    }

    

Parameters:
API the API to get the data with
Returns:
the summoner's teams
See also:
LoL API Specification
    public List<TeamgetTeams(final RiotAPI API) {
        return API.getTeamsBySummoner(this);
    }
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ( == null ? 0 : .hashCode());
        return result;
    }
    @Override
    public String toString() {
        return ;
    }
New to GrepCode? Check out our FAQ X