Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package it.toscana.regione.rfc205.interpro_Titolario;
- public class Titolario {
- private java.lang.String codice;
- private java.lang.String descrizione;
- public Titolario() {
- }
- public java.lang.String getCodice() {
- return this.codice;
- }
- public void setCodice(java.lang.String codice) {
- this.codice = codice;
- }
- public java.lang.String getDescrizione() {
- return this.descrizione;
- }
- public void setDescrizione(java.lang.String descrizione) {
- this.descrizione = descrizione;
- }
- private java.lang.Object __equalsCalc = null;
- public synchronized boolean equals(java.lang.Object obj) {
- if (!(obj instanceof Titolario)) return false;
- Titolario other = (Titolario) obj;
- if (obj == null) return false;
- if (this == obj) return true;
- if (__equalsCalc != null) {
- return (__equalsCalc == obj);
- }
- __equalsCalc = obj;
- boolean _equals;
- _equals = true &&
- ((this.codice==null && other.getCodice()==null) ||
- (this.codice!=null &&
- this.codice.equals(other.getCodice()))) &&
- ((this.descrizione==null && other.getDescrizione()==null) ||
- (this.descrizione!=null &&
- this.descrizione.equals(other.getDescrizione())));
- __equalsCalc = null;
- return _equals;
- }
- private boolean __hashCodeCalc = false;
- public synchronized int hashCode() {
- if (__hashCodeCalc) {
- return 0;
- }
- __hashCodeCalc = true;
- int _hashCode = 1;
- if (getCodice() != null) {
- _hashCode += getCodice().hashCode();
- }
- if (getDescrizione() != null) {
- _hashCode += getDescrizione().hashCode();
- }
- __hashCodeCalc = false;
- return _hashCode;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement