public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getDisplayTypes() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getDisplayTypes()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getDisplayTypes(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getActivationOptions() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getActivationOptions()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getActivationOptions(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getAdSizeSpecs() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getAdSizeSpecs()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getAdSizeSpecs(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getValue() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getValue()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getValue(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getPartialFailureErrors() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getPartialFailureErrors()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getPartialFailureErrors(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #3
0
  /**
   * Writes any java.lang.Object as a CORBA any.
   *
   * @param out the stream in which to write the any.
   * @param obj the object to write as an any.
   */
  public void writeAny(org.omg.CORBA.portable.OutputStream out, java.lang.Object obj) {
    org.omg.CORBA.ORB orb = out.orb();

    // Create Any
    Any any = orb.create_any();

    // Make sure we have a connected object...
    java.lang.Object newObj = Utility.autoConnect(obj, orb, false);

    if (newObj instanceof org.omg.CORBA.Object) {
      any.insert_Object((org.omg.CORBA.Object) newObj);
    } else {
      if (newObj == null) {
        // Handle the null case, including backwards
        // compatibility issues
        any.insert_Value(null, createTypeCodeForNull(orb));
      } else {
        if (newObj instanceof Serializable) {
          // If they're our Any and ORB implementations,
          // we may want to do type code related versioning.
          TypeCode tc = createTypeCode((Serializable) newObj, any, orb);
          if (tc == null) any.insert_Value((Serializable) newObj);
          else any.insert_Value((Serializable) newObj, tc);
        } else if (newObj instanceof Remote) {
          ORBUtility.throwNotSerializableForCorba(newObj.getClass().getName());
        } else {
          ORBUtility.throwNotSerializableForCorba(newObj.getClass().getName());
        }
      }
    }

    out.write_any(any);
  }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getTargetedAdUnits() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getTargetedAdUnits()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getTargetedAdUnits(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getExcludedAdUnits() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getExcludedAdUnits()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getExcludedAdUnits(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getTargetedPlacementIds() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getTargetedPlacementIds()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getTargetedPlacementIds(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getGroupList() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getGroupList()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getGroupList(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getGroupUserList() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getGroupUserList()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getGroupUserList(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getReturnCode() != null) {
     _hashCode += getReturnCode().hashCode();
   }
   if (getReturnMessage() != null) {
     _hashCode += getReturnMessage().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #6
0
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getWorkingCopies() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getWorkingCopies()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getWorkingCopies(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCheckedIn() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getCheckedIn()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getCheckedIn(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getPipeline() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getPipeline()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getPipeline(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getProjectedItemPKs() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getProjectedItemPKs()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getProjectedItemPKs(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getWsTransformerPK() != null) {
     _hashCode += getWsTransformerPK().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getEasyNumbers() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getEasyNumbers()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getEasyNumbers(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getStaticAttributionRange() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getStaticAttributionRange()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getStaticAttributionRange(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getProposedNumbers() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getProposedNumbers()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getProposedNumbers(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   _hashCode += getResult_count();
   _hashCode += getTotal_count();
   _hashCode += getNext_offset();
   if (getEntry_list() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getEntry_list()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getEntry_list(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getRelationship_list() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getRelationship_list()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getRelationship_list(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getChangedCampaigns() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getChangedCampaigns()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getChangedCampaigns(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getChangedFeeds() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getChangedFeeds()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getChangedFeeds(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getLastChangeTimestamp() != null) {
     _hashCode += getLastChangeTimestamp().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   _hashCode += (isSuccessful() ? Boolean.TRUE : Boolean.FALSE).hashCode();
   if (getErrors() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getErrors()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getErrors(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getWarnings() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getWarnings()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getWarnings(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getPurchaseOrderCode() != null) {
     _hashCode += getPurchaseOrderCode().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getCcEmails() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getCcEmails()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getCcEmails(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getDescription() != null) {
     _hashCode += getDescription().hashCode();
   }
   _hashCode += (is_protected() ? Boolean.TRUE : Boolean.FALSE).hashCode();
   if (getRecipients() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getRecipients()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getRecipients(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getTemplate() != null) {
     _hashCode += getTemplate().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getDuration() != null) {
     _hashCode += getDuration().hashCode();
   }
   if (getAllowDurationOverride() != null) {
     _hashCode += getAllowDurationOverride().hashCode();
   }
   if (getTrackingUrls() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getTrackingUrls()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getTrackingUrls(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCompanionCreativeIds() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getCompanionCreativeIds()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getCompanionCreativeIds(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCustomParameters() != null) {
     _hashCode += getCustomParameters().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getMarkupLanguages() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getMarkupLanguages()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getMarkupLanguages(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getMobileCarriers() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getMobileCarriers()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getMobileCarriers(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getImage() != null) {
     _hashCode += getImage().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 @Override
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getExceptions() != null) {
     _hashCode += getExceptions().hashCode();
   }
   if (getShowExample() != null) {
     _hashCode += getShowExample().hashCode();
   }
   if (getClusterNames() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getClusterNames()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getClusterNames(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getFileTypes() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getFileTypes()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getFileTypes(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #16
0
  public QMPStudent(java.lang.Object paramObj, QMPExtendedSoapSerializationEnvelope __envelope) {

    if (paramObj == null) return;
    AttributeContainer inObj = (AttributeContainer) paramObj;

    SoapObject soapObject = (SoapObject) inObj;
    if (soapObject.hasProperty("FullName")) {
      java.lang.Object obj = soapObject.getProperty("FullName");
      if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
        SoapPrimitive j = (SoapPrimitive) obj;
        if (j.toString() != null) {
          this.FullName = j.toString();
        }
      } else if (obj != null && obj instanceof String) {
        this.FullName = (String) obj;
      }
    }
    if (soapObject.hasProperty("StudentId")) {
      java.lang.Object obj = soapObject.getProperty("StudentId");
      if (obj != null && obj.getClass().equals(SoapPrimitive.class)) {
        SoapPrimitive j = (SoapPrimitive) obj;
        if (j.toString() != null) {
          this.StudentId = Integer.parseInt(j.toString());
        }
      } else if (obj != null && obj instanceof Integer) {
        this.StudentId = (Integer) obj;
      }
    }
  }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getPhraseIgnored() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getPhraseIgnored()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getPhraseIgnored(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getQuotedPhraseNotFound() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getQuotedPhraseNotFound()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getQuotedPhraseNotFound(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getOutputMessage() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getOutputMessage()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getOutputMessage(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 @Override
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getVnicDevice() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getVnicDevice()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getVnicDevice(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getConsoleVnicDevice() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getConsoleVnicDevice()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getConsoleVnicDevice(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getAdGroupId() != null) {
     _hashCode += getAdGroupId().hashCode();
   }
   if (getAd() != null) {
     _hashCode += getAd().hashCode();
   }
   if (getExperimentData() != null) {
     _hashCode += getExperimentData().hashCode();
   }
   if (getStatus() != null) {
     _hashCode += getStatus().hashCode();
   }
   if (getApprovalStatus() != null) {
     _hashCode += getApprovalStatus().hashCode();
   }
   if (getTrademarks() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getTrademarks()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getTrademarks(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getDisapprovalReasons() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getDisapprovalReasons()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getDisapprovalReasons(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getTrademarkDisapproved() != null) {
     _hashCode += getTrademarkDisapproved().hashCode();
   }
   if (getLabels() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getLabels()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getLabels(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getForwardCompatibilityMap() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getForwardCompatibilityMap()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getForwardCompatibilityMap(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #20
0
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getAsunto() != null) {
     _hashCode += getAsunto().hashCode();
   }
   if (getDocumentosElectronicos() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getDocumentosElectronicos()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getDocumentosElectronicos(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getDocumentosFisicos() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getDocumentosFisicos()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getDocumentosFisicos(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getEmplazamientos() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getEmplazamientos()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getEmplazamientos(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getFechaFinalizacion() != null) {
     _hashCode += getFechaFinalizacion().hashCode();
   }
   if (getFechaInicio() != null) {
     _hashCode += getFechaInicio().hashCode();
   }
   if (getIdOrgProductor() != null) {
     _hashCode += getIdOrgProductor().hashCode();
   }
   if (getInformacionBasica() != null) {
     _hashCode += getInformacionBasica().hashCode();
   }
   if (getInteresados() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getInteresados()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getInteresados(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getNombreOrgProductor() != null) {
     _hashCode += getNombreOrgProductor().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getId() != null) {
     _hashCode += getId().hashCode();
   }
   if (getName() != null) {
     _hashCode += getName().hashCode();
   }
   if (getStatus() != null) {
     _hashCode += getStatus().hashCode();
   }
   if (getStatusDefinedBy() != null) {
     _hashCode += getStatusDefinedBy().hashCode();
   }
   if (getImportDateTime() != null) {
     _hashCode += getImportDateTime().hashCode();
   }
   if (getLastModifiedDateTime() != null) {
     _hashCode += getLastModifiedDateTime().hashCode();
   }
   if (getUserDefinedCustomTargetingValueIds() != null) {
     for (int i = 0;
         i < java.lang.reflect.Array.getLength(getUserDefinedCustomTargetingValueIds());
         i++) {
       java.lang.Object obj =
           java.lang.reflect.Array.get(getUserDefinedCustomTargetingValueIds(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getMappingRuleDefinedCustomTargetingValueIds() != null) {
     for (int i = 0;
         i < java.lang.reflect.Array.getLength(getMappingRuleDefinedCustomTargetingValueIds());
         i++) {
       java.lang.Object obj =
           java.lang.reflect.Array.get(getMappingRuleDefinedCustomTargetingValueIds(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCmsSources() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getCmsSources()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getCmsSources(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public static java.lang.String className(
     @Name("obj") @TypeInfo("ceylon.language::Object") final java.lang.Object object) {
   // TODO: type args?
   Name annot = object.getClass().getAnnotation(Name.class);
   if (annot != null) {
     if (object.getClass().getPackage() != null) {
       return object.getClass().getPackage().getName() + "::" + annot.value();
     } else {
       return annot.value();
     }
   } else {
     Ceylon ann = object.getClass().getAnnotation(Ceylon.class);
     java.lang.String pkg =
         object.getClass().getPackage() == null ? "" : object.getClass().getPackage().getName();
     java.lang.String name = object.getClass().getSimpleName();
     if (name.isEmpty()) {
       name = object.getClass().getName();
       // Remove the package from the classname
       if (!pkg.isEmpty()) {
         name = name.substring(pkg.length() + 1);
       }
     }
     // FIXME The mangle part really shouldn't be necessary as long as we add @Name
     // annotations to all classes with mangled names
     return mangle(pkg, ann) + "::" + mangle(name, ann);
   }
 }
Example #23
0
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getCustomForm() != null) {
     _hashCode += getCustomForm().hashCode();
   }
   if (getSubsidiary() != null) {
     _hashCode += getSubsidiary().hashCode();
   }
   if (getLocation() != null) {
     _hashCode += getLocation().hashCode();
   }
   if (getItem() != null) {
     _hashCode += getItem().hashCode();
   }
   if (getUnits() != null) {
     _hashCode += getUnits().hashCode();
   }
   if (getMemo() != null) {
     _hashCode += getMemo().hashCode();
   }
   if (getOrderList() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getOrderList()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getOrderList(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCustomFieldList() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getCustomFieldList()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getCustomFieldList(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getInternalId() != null) {
     _hashCode += getInternalId().hashCode();
   }
   if (getExternalId() != null) {
     _hashCode += getExternalId().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getSumB() != null) {
     _hashCode += getSumB().hashCode();
   }
   if (getTimabil() != null) {
     _hashCode += getTimabil().hashCode();
   }
   if (getSumA() != null) {
     _hashCode += getSumA().hashCode();
   }
   if (getAhSkerdingA() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getAhSkerdingA()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getAhSkerdingA(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getSkipNr() != null) {
     _hashCode += getSkipNr().hashCode();
   }
   if (getSkipHeiti() != null) {
     _hashCode += getSkipHeiti().hashCode();
   }
   if (getStatus() != null) {
     _hashCode += getStatus().hashCode();
   }
   if (getMism() != null) {
     _hashCode += getMism().hashCode();
   }
   if (getSkilabod() != null) {
     _hashCode += getSkilabod().hashCode();
   }
   if (getAhSkerdingB() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getAhSkerdingB()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getAhSkerdingB(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #25
0
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getType() != null) {
     _hashCode += getType().hashCode();
   }
   if (getPriority() != null) {
     _hashCode += getPriority().hashCode();
   }
   if (getConnexion() != null) {
     _hashCode += getConnexion().hashCode();
   }
   _hashCode += getBandwidth();
   _hashCode += getBandwidthOvhToOvh();
   _hashCode += getBandwidthOvhToInternet();
   _hashCode += getBandwidthInternetToOvh();
   _hashCode += (isOver() ? Boolean.TRUE : Boolean.FALSE).hashCode();
   if (getInterfaces() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getInterfaces()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getInterfaces(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getTraffic() != null) {
     _hashCode += getTraffic().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getSpecialServiceTypes() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getSpecialServiceTypes()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getSpecialServiceTypes(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getCodDetail() != null) {
     _hashCode += getCodDetail().hashCode();
   }
   if (getDangerousGoodsDetail() != null) {
     _hashCode += getDangerousGoodsDetail().hashCode();
   }
   if (getDryIceWeight() != null) {
     _hashCode += getDryIceWeight().hashCode();
   }
   if (getSignatureOptionDetail() != null) {
     _hashCode += getSignatureOptionDetail().hashCode();
   }
   if (getPriorityAlertDetail() != null) {
     _hashCode += getPriorityAlertDetail().hashCode();
   }
   if (getAlcoholDetail() != null) {
     _hashCode += getAlcoholDetail().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #27
0
  public void setEntity(java.lang.Object ent) {
    Method[] methods = ent.getClass().getDeclaredMethods();
    box.removeAll();
    for (Method m : methods) {
      if (m.getName().toLowerCase().startsWith("get")) {
        String attName = m.getName().substring(3);
        Object result;
        try {
          result = m.invoke(ent, new Object[] {});
          String value = "null";
          if (result != null) value = result.toString();
          JPanel attPane = new JPanel(new FlowLayout(FlowLayout.LEFT));
          attPane.add(new JLabel(attName + " : " + m.getReturnType().getName() + " = " + value));
          box.add(attPane);
        } catch (IllegalArgumentException e) {

          e.printStackTrace();
        } catch (IllegalAccessException e) {

          e.printStackTrace();
        } catch (InvocationTargetException e) {

          e.printStackTrace();
        }
      }
    }
  }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getDatosPersonal() != null) {
     _hashCode += getDatosPersonal().hashCode();
   }
   if (getMatrimonio() != null) {
     _hashCode += getMatrimonio().hashCode();
   }
   if (getHijo() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getHijo()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getHijo(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getSignature() != null) {
     _hashCode += getSignature().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }
Example #29
0
 @Override
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = super.hashCode();
   if (getNetwork() != null) {
     _hashCode += getNetwork().hashCode();
   }
   if (getIpAddress() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getIpAddress()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getIpAddress(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getMacAddress() != null) {
     _hashCode += getMacAddress().hashCode();
   }
   _hashCode += (isConnected() ? Boolean.TRUE : Boolean.FALSE).hashCode();
   _hashCode += getDeviceConfigId();
   __hashCodeCalc = false;
   return _hashCode;
 }
 public synchronized int hashCode() {
   if (__hashCodeCalc) {
     return 0;
   }
   __hashCodeCalc = true;
   int _hashCode = 1;
   if (getOutput() != null) {
     _hashCode += getOutput().hashCode();
   }
   if (getOrganism() != null) {
     _hashCode += getOrganism().hashCode();
   }
   if (getQuery() != null) {
     for (int i = 0; i < java.lang.reflect.Array.getLength(getQuery()); i++) {
       java.lang.Object obj = java.lang.reflect.Array.get(getQuery(), i);
       if (obj != null && !obj.getClass().isArray()) {
         _hashCode += obj.hashCode();
       }
     }
   }
   if (getTmp_infile() != null) {
     _hashCode += getTmp_infile().hashCode();
   }
   if (getAll() != null) {
     _hashCode += getAll().hashCode();
   }
   if (getDistance() != null) {
     _hashCode += getDistance().hashCode();
   }
   if (get_return() != null) {
     _hashCode += get_return().hashCode();
   }
   __hashCodeCalc = false;
   return _hashCode;
 }