Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.currentgame;
  
  
  public class BannedChampion extends OriannaDto {
      private static final long serialVersionUID = -6547282340918045216L;
      private Long championIdteamId;
      private Integer pickTurn;
  
     /*
      * (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 BannedChampion)) {
             return false;
         }
         final BannedChampion other = (BannedChampion)obj;
         if( == null) {
             if(other.championId != null) {
                 return false;
             }
         }
         else if(!.equals(other.championId)) {
             return false;
         }
         if( == null) {
             if(other.pickTurn != null) {
                 return false;
             }
         }
         else if(!.equals(other.pickTurn)) {
             return false;
         }
         if( == null) {
             if(other.teamId != null) {
                 return false;
             }
         }
         else if(!.equals(other.teamId)) {
             return false;
         }
         return true;
     }

    

Returns:
the championId
 
     public Long getChampionId() {
         return ;
     }

    

Returns:
the pickTurn
 
     public Integer getPickTurn() {
         return ;
     }

    

Returns:
the teamId
 
     public Long getTeamId() {
         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());
         return result;
     }

    

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

    

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

    

Parameters:
teamId the teamId to set
    public void setTeamId(final Long teamId) {
        this. = teamId;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "BannedChampion [championId=" +  + ", teamId=" +  + ", pickTurn=" +  + "]";
    }
New to GrepCode? Check out our FAQ X