Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.team;
 
 
 public class TeamStatDetail implements Serializable {
     private static final long serialVersionUID = -8535394163123253728L;
     public final Integer averageGamesPlayedlosseswins;
     public final String teamStatType;
 
    public TeamStatDetail(final Integer averageGamesPlayedfinal Integer lossesfinal Integer winsfinal String teamStatType) {
        this. = averageGamesPlayed;
        this. = losses;
        this. = wins;
        this. = teamStatType;
    }
    @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;
    }
    @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;
    }
    @Override
    public String toString() {
        return "TeamStatDetail [averageGamesPlayed=" +  + ", losses=" +  + ", wins=" +  + ", teamStatType=" +  + "]";
    }
New to GrepCode? Check out our FAQ X