Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.team;
 
 import java.util.List;
 
 
public class Team implements Serializable {
    private static final long serialVersionUID = 2751335336119768871L;
    public final String IDnamestatustag;
    public final List<MatchHistorySummarymatchHistory;
    public final Roster roster;
    public final List<TeamStatDetailteamStatDetails;
    public Team(final LocalDateTime createDatefinal LocalDateTime lastGameDatefinal LocalDateTime lastJoinDate,
            final LocalDateTime lastJoinedRankedTeamQueueDatefinal LocalDateTime modifyDatefinal LocalDateTime secondLastJoinDate,
            final LocalDateTime thirdLastJoinDatefinal String IDfinal String namefinal String statusfinal String tag,
            final List<MatchHistorySummarymatchHistoryfinal Roster rosterfinal List<TeamStatDetailteamStatDetails) {
        this. = createDate;
        this. = lastGameDate;
        this. = lastJoinDate;
        this. = lastJoinedRankedTeamQueueDate;
        this. = modifyDate;
        this. = secondLastJoinDate;
        this. = thirdLastJoinDate;
        this. = ID;
        this. = name;
        this. = status;
        this. = tag;
        this. = matchHistory;
        this. = roster;
        this. = teamStatDetails;
    }
    @Override
    public boolean equals(final Object obj) {
        if(this == obj) {
            return true;
        }
        if(obj == null) {
            return false;
        }
        if(!(obj instanceof Team)) {
            return false;
        }
        final Team other = (Team)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 team's leagues
See also:
LoL API Specification
    public List<LeaguegetLeagueEntries(final RiotAPI API) {
        return API.getLeagueEntriesByTeam(this);
    }

    

Parameters:
API the API to get the data with
Returns:
the team's leagues
See also:
LoL API Specification
    public List<LeaguegetLeagues(final RiotAPI API) {
        return API.getLeaguesByTeam(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