Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.robrua.orianna.type.dto.staticdata;
  
  
  public class Passive extends OriannaDto {
      private static final long serialVersionUID = -217432027804125776L;
      private String descriptionnamesanitizedDescription;
      private Image image;
  
     /*
      * (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 Passive)) {
             return false;
         }
         final Passive other = (Passive)obj;
         if( == null) {
             if(other.description != null) {
                 return false;
             }
         }
         else if(!.equals(other.description)) {
             return false;
         }
         if( == null) {
             if(other.image != null) {
                 return false;
             }
         }
         else if(!.equals(other.image)) {
             return false;
         }
         if( == null) {
             if(other.name != null) {
                 return false;
             }
         }
         else if(!.equals(other.name)) {
             return false;
         }
         if( == null) {
             if(other.sanitizedDescription != null) {
                 return false;
             }
         }
         else if(!.equals(other.sanitizedDescription)) {
             return false;
         }
         return true;
     }

    

Returns:
the description
 
     public String getDescription() {
         return ;
     }

    

Returns:
the image
 
     public Image getImage() {
         return ;
     }

    

Returns:
the name
 
     public String getName() {
         return ;
     }

    

Returns:
the sanitizedDescription
 
     public String getSanitizedDescription() {
         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:
description the description to set
    public void setDescription(final String description) {
        this. = description;
    }

    

Parameters:
image the image to set
    public void setImage(final Image image) {
        this. = image;
    }

    

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

    

Parameters:
sanitizedDescription the sanitizedDescription to set
    public void setSanitizedDescription(final String sanitizedDescription) {
        this. = sanitizedDescription;
    }
    /*
     * (non-Javadoc)
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "Passive [description=" +  + ", name=" +  + ", sanitizedDescription=" +  + ", image=" +  + "]";
    }
New to GrepCode? Check out our FAQ X