/// <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> /// 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) )); }