Advertisement
Guest User

Untitled

a guest
May 1st, 2014
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.61 KB | None | 0 0
  1. package it.toscana.regione.rfc205.interpro_Titolario;
  2.  
  3. public class Titolario  {
  4.     private java.lang.String codice;
  5.     private java.lang.String descrizione;
  6.  
  7.     public Titolario() {
  8.     }
  9.  
  10.     public java.lang.String getCodice() {
  11.         return this.codice;
  12.     }
  13.  
  14.     public void setCodice(java.lang.String codice) {
  15.         this.codice = codice;
  16.     }
  17.  
  18.     public java.lang.String getDescrizione() {
  19.         return this.descrizione;
  20.     }
  21.  
  22.     public void setDescrizione(java.lang.String descrizione) {
  23.         this.descrizione = descrizione;
  24.     }
  25.  
  26.     private java.lang.Object __equalsCalc = null;
  27.     public synchronized boolean equals(java.lang.Object obj) {
  28.         if (!(obj instanceof Titolario)) return false;
  29.         Titolario other = (Titolario) obj;
  30.         if (obj == null) return false;
  31.         if (this == obj) return true;
  32.         if (__equalsCalc != null) {
  33.             return (__equalsCalc == obj);
  34.         }
  35.         __equalsCalc = obj;
  36.         boolean _equals;
  37.         _equals = true &&
  38.             ((this.codice==null && other.getCodice()==null) ||
  39.              (this.codice!=null &&
  40.               this.codice.equals(other.getCodice()))) &&
  41.             ((this.descrizione==null && other.getDescrizione()==null) ||
  42.              (this.descrizione!=null &&
  43.               this.descrizione.equals(other.getDescrizione())));
  44.         __equalsCalc = null;
  45.         return _equals;
  46.     }
  47.  
  48.     private boolean __hashCodeCalc = false;
  49.     public synchronized int hashCode() {
  50.         if (__hashCodeCalc) {
  51.             return 0;
  52.         }
  53.         __hashCodeCalc = true;
  54.         int _hashCode = 1;
  55.         if (getCodice() != null) {
  56.             _hashCode += getCodice().hashCode();
  57.         }
  58.         if (getDescrizione() != null) {
  59.             _hashCode += getDescrizione().hashCode();
  60.         }
  61.         __hashCodeCalc = false;
  62.         return _hashCode;
  63.     }
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement