Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.currentgame;
  
  import java.util.HashSet;
  import java.util.List;
  import java.util.Set;
  
  
  public class CurrentGameInfo extends OriannaDto {
     private static final long serialVersionUID = -8942022841946474617L;
     private List<BannedChampionbannedChampions;
     private String gameModegameTypeplatformId;
     private Observer observers;
     private List<Participantparticipants;
 
     /*
      * (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 CurrentGameInfo)) {
             return false;
         }
         final CurrentGameInfo other = (CurrentGameInfo)obj;
         if( == null) {
             if(other.bannedChampions != null) {
                 return false;
             }
         }
         else if(!.equals(other.bannedChampions)) {
             return false;
         }
         if( == null) {
             if(other.gameId != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameId)) {
             return false;
         }
         if( == null) {
             if(other.gameLength != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameLength)) {
             return false;
         }
         if( == null) {
             if(other.gameMode != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameMode)) {
             return false;
         }
         if( == null) {
             if(other.gameQueueConfigId != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameQueueConfigId)) {
             return false;
         }
         if( == null) {
             if(other.gameStartTime != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameStartTime)) {
             return false;
         }
         if( == null) {
             if(other.gameType != null) {
                 return false;
             }
         }
         else if(!.equals(other.gameType)) {
             return false;
         }
         if( == null) {
             if(other.mapId != null) {
                 return false;
             }
         }
         else if(!.equals(other.mapId)) {
             return false;
         }
         if( == null) {
             if(other.observers != null) {
                 return false;
            }
        }
        else if(!.equals(other.observers)) {
            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;
        }
        return true;
    }

    

Returns:
the bannedChampions
        return ;
    }

    
Gets all stored champion IDs for batch lookup

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

    

Returns:
the gameId
    public Long getGameId() {
        return ;
    }

    

Returns:
the gameLength
    public Long getGameLength() {
        return ;
    }

    

Returns:
the gameMode
    public String getGameMode() {
        return ;
    }

    

Returns:
the gameQueueConfigId
    public Long getGameQueueConfigId() {
        return ;
    }

    

Returns:
the gameStartTime
    public Long getGameStartTime() {
        return ;
    }

    

Returns:
the gameType
    public String getGameType() {
        return ;
    }

    

Returns:
the mapId
    public Long 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 : ) {
            if(p.getMasteries() != null) {
                for(final Mastery m : p.getMasteries()) {
                    set.add(m.getMasteryId());
                }
            }
        }
        return set;
    }

    

Returns:
the observers
    public Observer getObservers() {
        return ;
    }

    

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

    

Returns:
the platformId
    public String getPlatformId() {
        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 : ) {
            if(p.getRunes() != null) {
                for(final Rune rune : p.getRunes()) {
                    set.add(rune.getRuneId());
                }
            }
        }
        return set;
    }

    
Gets all stored summoner IDs for batch lookup

Returns:
the summoner IDs
    public Set<LonggetSummonerIDs() {
        final Set<Longset = new HashSet<>();
        for(final Participant p : ) {
            if(p.getSummonerId() != null) {
                set.add(p.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 Participant p : ) {
            if(p.getSummonerName() != null) {
                set.add(p.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());
            set.add(p.getSpell2Id());
        }
        return set;
    }
    /*
     * (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());
        return result;
    }

    

Parameters:
bannedChampions the bannedChampions to set
    public void setBannedChampions(final List<BannedChampionbannedChampions) {
        this. = bannedChampions;
    }

    

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

    

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

    

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

    

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

    

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

    

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

    

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

    

Parameters:
observers the observers to set
    public void setObservers(final Observer observers) {
        this. = observers;
    }

    

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;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "CurrentGameInfo [bannedChampions=" +  + ", gameId=" +  + ", gameLength=" +  + ", gameQueueConfigId="
                +  + ", gameStartTime=" +  + ", mapId=" +  + ", gameMode=" +  + ", gameType=" + 
                + ", platformId=" +  + ", observers=" +  + ", participants=" +  + "]";
    }
New to GrepCode? Check out our FAQ X