Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.staticdata;
  
  
  public class Info extends OriannaDto {
      private static final long serialVersionUID = 1346443594745926604L;
      private Integer attackdefensedifficultymagic;
  
      /*
      * (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 Info)) {
             return false;
         }
         final Info other = (Info)obj;
         if( == null) {
             if(other.attack != null) {
                 return false;
             }
         }
         else if(!.equals(other.attack)) {
             return false;
         }
         if( == null) {
             if(other.defense != null) {
                 return false;
             }
         }
         else if(!.equals(other.defense)) {
             return false;
         }
         if( == null) {
             if(other.difficulty != null) {
                 return false;
             }
         }
         else if(!.equals(other.difficulty)) {
             return false;
         }
         if( == null) {
             if(other.magic != null) {
                 return false;
             }
         }
         else if(!.equals(other.magic)) {
             return false;
         }
         return true;
     }

    

Returns:
the attack
 
     public Integer getAttack() {
         return ;
     }

    

Returns:
the defense
 
     public Integer getDefense() {
         return ;
     }

    

Returns:
the difficulty
 
     public Integer getDifficulty() {
         return ;
     }

    

Returns:
the magic
 
     public Integer getMagic() {
         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:
attack the attack to set
    public void setAttack(final Integer attack) {
        this. = attack;
    }

    

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

    

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

    

Parameters:
magic the magic to set
    public void setMagic(final Integer magic) {
        this. = magic;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Info [attack=" +  + ", defense=" +  + ", difficulty=" +  + ", magic=" +  + "]";
    }
New to GrepCode? Check out our FAQ X