Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.match;
  
  import java.util.HashSet;
  import java.util.List;
  import java.util.Set;
  
  
  public class MatchDetail extends OriannaDto {
     private static final long serialVersionUID = -5583614253740686126L;
     private Integer mapId;
     private Long matchCreationmatchDurationmatchId;
     private List<Participantparticipants;
     private List<Teamteams;
     private Timeline timeline;
 
     /*
      * (non-Javadoc)
      * @see java.lang.Object#equals(java.lang.Object)
      */
     @Override
     public boolean equals(final Object obj) {
         if(this == obj) {
             return true;
         }
         if(obj == null) {
             return false;
         }
         if(!(obj instanceof MatchDetail)) {
             return false;
         }
         final MatchDetail other = (MatchDetail)obj;
         if( == null) {
             if(other.mapId != null) {
                 return false;
             }
         }
         else if(!.equals(other.mapId)) {
             return false;
         }
         if( == null) {
             if(other.matchCreation != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchCreation)) {
             return false;
         }
         if( == null) {
             if(other.matchDuration != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchDuration)) {
             return false;
         }
         if( == null) {
             if(other.matchId != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchId)) {
             return false;
         }
         if( == null) {
             if(other.matchMode != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchMode)) {
             return false;
         }
         if( == null) {
             if(other.matchType != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchType)) {
             return false;
         }
         if( == null) {
             if(other.matchVersion != null) {
                 return false;
             }
         }
         else if(!.equals(other.matchVersion)) {
             return false;
         }
         if( == null) {
             if(other.participantIdentities != null) {
                 return false;
             }
         }
         else if(!.equals(other.participantIdentities)) {
             return false;
         }
         if( == null) {
            if(other.participants != null) {
                return false;
            }
        }
        else if(!.equals(other.participants)) {
            return false;
        }
        if( == null) {
            if(other.platformId != null) {
                return false;
            }
        }
        else if(!.equals(other.platformId)) {
            return false;
        }
        if( == null) {
            if(other.queueType != null) {
                return false;
            }
        }
        else if(!.equals(other.queueType)) {
            return false;
        }
        if( == null) {
            if(other.region != null) {
                return false;
            }
        }
        else if(!.equals(other.region)) {
            return false;
        }
        if( == null) {
            if(other.season != null) {
                return false;
            }
        }
        else if(!.equals(other.season)) {
            return false;
        }
        if( == null) {
            if(other.teams != null) {
                return false;
            }
        }
        else if(!.equals(other.teams)) {
            return false;
        }
        if( == null) {
            if(other.timeline != null) {
                return false;
            }
        }
        else if(!.equals(other.timeline)) {
            return false;
        }
        return true;
    }

    
Gets all stored champion IDs for batch lookup

Returns:
the champion IDs
    public Set<LonggetChampionIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            set.add(p.getChampionId().longValue());
        }
        for(final Team t : ) {
            if(t.getBans() != null) {
                for(final BannedChampion ban : t.getBans()) {
                    set.add(ban.getChampionId().longValue());
                }
            }
        }
        return set;
    }

    
Gets all stored item IDs for batch lookup

Returns:
the item IDs
    public Set<LonggetItemIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            final ParticipantStats s = p.getStats();
            set.add(s.getItem0());
            set.add(s.getItem1());
            set.add(s.getItem2());
            set.add(s.getItem3());
            set.add(s.getItem4());
            set.add(s.getItem5());
            set.add(s.getItem6());
        }
        return set;
    }

    

Returns:
the mapId
    public Integer getMapId() {
        return ;
    }

    
Gets all stored mastery IDs for batch lookup

Returns:
the mastery IDs
    public Set<LonggetMasteryIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            for(final Mastery mastery : p.getMasteries()) {
                set.add(mastery.getMasteryId());
            }
        }
        return set;
    }

    

Returns:
the matchCreation
    public Long getMatchCreation() {
        return ;
    }

    

Returns:
the matchDuration
    public Long getMatchDuration() {
        return ;
    }

    

Returns:
the matchId
    public Long getMatchId() {
        return ;
    }

    

Returns:
the matchMode
    public String getMatchMode() {
        return ;
    }

    

Returns:
the matchType
    public String getMatchType() {
        return ;
    }

    

Returns:
the matchVersion
    public String getMatchVersion() {
        return ;
    }

    

Returns:
the participantIdentities
        return ;
    }

    

Returns:
the participants
    public List<ParticipantgetParticipants() {
        return ;
    }

    

Returns:
the platformId
    public String getPlatformId() {
        return ;
    }

    

Returns:
the queueType
    public String getQueueType() {
        return ;
    }

    

Returns:
the region
    public String getRegion() {
        return ;
    }

    
Gets all stored rune IDs for batch lookup

Returns:
the rune IDs
    public Set<LonggetRuneIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            for(final Rune rune : p.getRunes()) {
                set.add(rune.getRuneId());
            }
        }
        return set;
    }

    

Returns:
the season
    public String getSeason() {
        return ;
    }

    
Gets all stored summoner IDs for batch lookup

Returns:
the summoner IDs
    public Set<LonggetSummonerIDs() {
        final Set<Longset = new HashSet<>();
        for(final ParticipantIdentity p : ) {
            if(p.getPlayer() != null) {
                set.add(p.getPlayer().getSummonerId());
            }
        }
        return set;
    }

    
Gets all stored summoner names for batch lookup

Returns:
the summoner names
    public Set<StringgetSummonerNames() {
        final Set<Stringset = new HashSet<>();
        for(final ParticipantIdentity p : ) {
            if(p.getPlayer() != null) {
                set.add(p.getPlayer().getSummonerName());
            }
        }
        return set;
    }

    
Gets all stored summoner spell IDs for batch lookup

Returns:
the summoner spell IDs
    public Set<LonggetSummonerSpellIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            set.add(p.getSpell1Id().longValue());
            set.add(p.getSpell1Id().longValue());
        }
        return set;
    }

    

Returns:
the teams
    public List<TeamgetTeams() {
        return ;
    }

    

Returns:
the timeline
    public Timeline getTimeline() {
        return ;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#hashCode()
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        result = prime * result + ( == null ? 0 : .hashCode());
        return result;
    }

    

Parameters:
mapId the mapId to set
    public void setMapId(final Integer mapId) {
        this. = mapId;
    }

    

Parameters:
matchCreation the matchCreation to set
    public void setMatchCreation(final Long matchCreation) {
        this. = matchCreation;
    }

    

Parameters:
matchDuration the matchDuration to set
    public void setMatchDuration(final Long matchDuration) {
        this. = matchDuration;
    }

    

Parameters:
matchId the matchId to set
    public void setMatchId(final Long matchId) {
        this. = matchId;
    }

    

Parameters:
matchMode the matchMode to set
    public void setMatchMode(final String matchMode) {
        this. = matchMode;
    }

    

Parameters:
matchType the matchType to set
    public void setMatchType(final String matchType) {
        this. = matchType;
    }

    

Parameters:
matchVersion the matchVersion to set
    public void setMatchVersion(final String matchVersion) {
        this. = matchVersion;
    }

    

Parameters:
participantIdentities the participantIdentities to set
    public void setParticipantIdentities(final List<ParticipantIdentityparticipantIdentities) {
        this. = participantIdentities;
    }

    

Parameters:
participants the participants to set
    public void setParticipants(final List<Participantparticipants) {
        this. = participants;
    }

    

Parameters:
platformId the platformId to set
    public void setPlatformId(final String platformId) {
        this. = platformId;
    }

    

Parameters:
queueType the queueType to set
    public void setQueueType(final String queueType) {
        this. = queueType;
    }

    

Parameters:
region the region to set
    public void setRegion(final String region) {
        this. = region;
    }

    

Parameters:
season the season to set
    public void setSeason(final String season) {
        this. = season;
    }

    

Parameters:
teams the teams to set
    public void setTeams(final List<Teamteams) {
        this. = teams;
    }

    

Parameters:
timeline the timeline to set
    public void setTimeline(final Timeline timeline) {
        this. = timeline;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "MatchDetail [mapId=" +  + ", matchCreation=" +  + ", matchDuration=" +  + ", matchId=" + 
                + ", matchMode=" +  + ", matchType=" +  + ", matchVersion=" +  + ", platformId=" +  + ", queueType="
                +  + ", region=" +  + ", season=" +  + ", participantIdentities=" +  + ", participants="
                +  + ", teams=" +  + ", timeline=" +  + "]";
    }
New to GrepCode? Check out our FAQ X