Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.team;
  
  
 
 @Table(name = "teammemberinfo")
 public class TeamStatDetail extends OriannaDto {
     private static final long serialVersionUID = -3811741438279345755L;
     private Integer averageGamesPlayedlosseswins;
     @Id
     @GeneratedValue(strategy = .)
     private long dbId;
 
     private String teamStatType;
 
     /*
      * (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 TeamStatDetail)) {
             return false;
         }
         final TeamStatDetail other = (TeamStatDetail)obj;
         if( == null) {
             if(other.averageGamesPlayed != null) {
                 return false;
             }
         }
         else if(!.equals(other.averageGamesPlayed)) {
             return false;
         }
         if( == null) {
             if(other.losses != null) {
                 return false;
             }
         }
         else if(!.equals(other.losses)) {
             return false;
         }
         if( == null) {
             if(other.teamStatType != null) {
                 return false;
             }
         }
         else if(!.equals(other.teamStatType)) {
             return false;
         }
         if( == null) {
             if(other.wins != null) {
                 return false;
             }
         }
         else if(!.equals(other.wins)) {
             return false;
         }
         return true;
     }

    

Returns:
the averageGamesPlayed
 
     public Integer getAverageGamesPlayed() {
         return ;
     }
 
     @Override
     public String getDataStoreIndexField(final Class<?> keyType) {
         if(keyType.equals(Long.class)) {
             return "dbId";
         }
         return null;
     }

    

Returns:
the losses
 
     public Integer getLosses() {
         return ;
     }

    

Returns:
the teamStatType
 
     public String getTeamStatType() {
         return ;
    }

    

Returns:
the wins
    public Integer getWins() {
        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());
        return result;
    }

    

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

    

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

    

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

    

Parameters:
wins the wins to set
    public void setWins(final Integer wins) {
        this. = wins;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "TeamStatDetail [averageGamesPlayed=" +  + ", losses=" +  + ", wins=" +  + ", teamStatType=" +  + "]";
    }
New to GrepCode? Check out our FAQ X