/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (FormatTarget != null) { hashCode = hashCode * 59 + FormatTarget.GetHashCode(); } if (TempFsFolder != null) { hashCode = hashCode * 59 + TempFsFolder.GetHashCode(); } if (FileThreshold != null) { hashCode = hashCode * 59 + FileThreshold.GetHashCode(); } if (MemoryUnit != null) { hashCode = hashCode * 59 + MemoryUnit.GetHashCode(); } if (UseOffHeapMemory != null) { hashCode = hashCode * 59 + UseOffHeapMemory.GetHashCode(); } if (DigestAlgorithm != null) { hashCode = hashCode * 59 + DigestAlgorithm.GetHashCode(); } if (MonitoringQueueSize != null) { hashCode = hashCode * 59 + MonitoringQueueSize.GetHashCode(); } if (CleanupDelay != null) { hashCode = hashCode * 59 + CleanupDelay.GetHashCode(); } if (PackageFilters != null) { hashCode = hashCode * 59 + PackageFilters.GetHashCode(); } if (PropertyFilters != null) { hashCode = hashCode * 59 + PropertyFilters.GetHashCode(); } return(hashCode); } }
/// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; // Suitable nullity checks etc, of course :) if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (ImportMode != null) { hashCode = hashCode * 59 + ImportMode.GetHashCode(); } if (AclHandling != null) { hashCode = hashCode * 59 + AclHandling.GetHashCode(); } if (PackageRoots != null) { hashCode = hashCode * 59 + PackageRoots.GetHashCode(); } if (PackageFilters != null) { hashCode = hashCode * 59 + PackageFilters.GetHashCode(); } if (PropertyFilters != null) { hashCode = hashCode * 59 + PropertyFilters.GetHashCode(); } if (TempFsFolder != null) { hashCode = hashCode * 59 + TempFsFolder.GetHashCode(); } if (UseBinaryReferences != null) { hashCode = hashCode * 59 + UseBinaryReferences.GetHashCode(); } if (AutoSaveThreshold != null) { hashCode = hashCode * 59 + AutoSaveThreshold.GetHashCode(); } if (CleanupDelay != null) { hashCode = hashCode * 59 + CleanupDelay.GetHashCode(); } if (FileThreshold != null) { hashCode = hashCode * 59 + FileThreshold.GetHashCode(); } if (MEGA_BYTES != null) { hashCode = hashCode * 59 + MEGA_BYTES.GetHashCode(); } if (UseOffHeapMemory != null) { hashCode = hashCode * 59 + UseOffHeapMemory.GetHashCode(); } if (DigestAlgorithm != null) { hashCode = hashCode * 59 + DigestAlgorithm.GetHashCode(); } if (MonitoringQueueSize != null) { hashCode = hashCode * 59 + MonitoringQueueSize.GetHashCode(); } if (PathsMapping != null) { hashCode = hashCode * 59 + PathsMapping.GetHashCode(); } if (StrictImport != null) { hashCode = hashCode * 59 + StrictImport.GetHashCode(); } return(hashCode); } }
/// <summary> /// Returns true if OrgApacheSlingDistributionSerializationImplVltVaultDistributionProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingDistributionSerializationImplVltVaultDistributionProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingDistributionSerializationImplVltVaultDistributionProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( ImportMode == other.ImportMode || ImportMode != null && ImportMode.Equals(other.ImportMode) ) && ( AclHandling == other.AclHandling || AclHandling != null && AclHandling.Equals(other.AclHandling) ) && ( PackageRoots == other.PackageRoots || PackageRoots != null && PackageRoots.Equals(other.PackageRoots) ) && ( PackageFilters == other.PackageFilters || PackageFilters != null && PackageFilters.Equals(other.PackageFilters) ) && ( PropertyFilters == other.PropertyFilters || PropertyFilters != null && PropertyFilters.Equals(other.PropertyFilters) ) && ( TempFsFolder == other.TempFsFolder || TempFsFolder != null && TempFsFolder.Equals(other.TempFsFolder) ) && ( UseBinaryReferences == other.UseBinaryReferences || UseBinaryReferences != null && UseBinaryReferences.Equals(other.UseBinaryReferences) ) && ( AutoSaveThreshold == other.AutoSaveThreshold || AutoSaveThreshold != null && AutoSaveThreshold.Equals(other.AutoSaveThreshold) ) && ( CleanupDelay == other.CleanupDelay || CleanupDelay != null && CleanupDelay.Equals(other.CleanupDelay) ) && ( FileThreshold == other.FileThreshold || FileThreshold != null && FileThreshold.Equals(other.FileThreshold) ) && ( MEGA_BYTES == other.MEGA_BYTES || MEGA_BYTES != null && MEGA_BYTES.Equals(other.MEGA_BYTES) ) && ( UseOffHeapMemory == other.UseOffHeapMemory || UseOffHeapMemory != null && UseOffHeapMemory.Equals(other.UseOffHeapMemory) ) && ( DigestAlgorithm == other.DigestAlgorithm || DigestAlgorithm != null && DigestAlgorithm.Equals(other.DigestAlgorithm) ) && ( MonitoringQueueSize == other.MonitoringQueueSize || MonitoringQueueSize != null && MonitoringQueueSize.Equals(other.MonitoringQueueSize) ) && ( PathsMapping == other.PathsMapping || PathsMapping != null && PathsMapping.Equals(other.PathsMapping) ) && ( StrictImport == other.StrictImport || StrictImport != null && StrictImport.Equals(other.StrictImport) )); }
/// <summary> /// Returns true if OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties instances are equal /// </summary> /// <param name="other">Instance of OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties to be compared</param> /// <returns>Boolean</returns> public bool Equals(OrgApacheSlingDistributionSerializationImplDistributionPackageBuProperties other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( FormatTarget == other.FormatTarget || FormatTarget != null && FormatTarget.Equals(other.FormatTarget) ) && ( TempFsFolder == other.TempFsFolder || TempFsFolder != null && TempFsFolder.Equals(other.TempFsFolder) ) && ( FileThreshold == other.FileThreshold || FileThreshold != null && FileThreshold.Equals(other.FileThreshold) ) && ( MemoryUnit == other.MemoryUnit || MemoryUnit != null && MemoryUnit.Equals(other.MemoryUnit) ) && ( UseOffHeapMemory == other.UseOffHeapMemory || UseOffHeapMemory != null && UseOffHeapMemory.Equals(other.UseOffHeapMemory) ) && ( DigestAlgorithm == other.DigestAlgorithm || DigestAlgorithm != null && DigestAlgorithm.Equals(other.DigestAlgorithm) ) && ( MonitoringQueueSize == other.MonitoringQueueSize || MonitoringQueueSize != null && MonitoringQueueSize.Equals(other.MonitoringQueueSize) ) && ( CleanupDelay == other.CleanupDelay || CleanupDelay != null && CleanupDelay.Equals(other.CleanupDelay) ) && ( PackageFilters == other.PackageFilters || PackageFilters != null && PackageFilters.Equals(other.PackageFilters) ) && ( PropertyFilters == other.PropertyFilters || PropertyFilters != null && PropertyFilters.Equals(other.PropertyFilters) )); }